Commit 795bd2e7 authored by Ulf Hansson's avatar Ulf Hansson Committed by Rafael J. Wysocki

PM / Domains: Rename pm_genpd_runtime_suspend|resume()

Follow genpd's rule for names of static functions, by renaming
pm_genpd_runtime_suspend|resume() to genpd_runtime_suspend|resume().
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Reviewed-by: default avatarKevin Hilman <khilman@baylibre.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 9df3921e
...@@ -372,14 +372,14 @@ static void genpd_power_off_work_fn(struct work_struct *work) ...@@ -372,14 +372,14 @@ static void genpd_power_off_work_fn(struct work_struct *work)
} }
/** /**
* pm_genpd_runtime_suspend - Suspend a device belonging to I/O PM domain. * genpd_runtime_suspend - Suspend a device belonging to I/O PM domain.
* @dev: Device to suspend. * @dev: Device to suspend.
* *
* Carry out a runtime suspend of a device under the assumption that its * Carry out a runtime suspend of a device under the assumption that its
* pm_domain field points to the domain member of an object of type * pm_domain field points to the domain member of an object of type
* struct generic_pm_domain representing a PM domain consisting of I/O devices. * struct generic_pm_domain representing a PM domain consisting of I/O devices.
*/ */
static int pm_genpd_runtime_suspend(struct device *dev) static int genpd_runtime_suspend(struct device *dev)
{ {
struct generic_pm_domain *genpd; struct generic_pm_domain *genpd;
bool (*suspend_ok)(struct device *__dev); bool (*suspend_ok)(struct device *__dev);
...@@ -446,14 +446,14 @@ static int pm_genpd_runtime_suspend(struct device *dev) ...@@ -446,14 +446,14 @@ static int pm_genpd_runtime_suspend(struct device *dev)
} }
/** /**
* pm_genpd_runtime_resume - Resume a device belonging to I/O PM domain. * genpd_runtime_resume - Resume a device belonging to I/O PM domain.
* @dev: Device to resume. * @dev: Device to resume.
* *
* Carry out a runtime resume of a device under the assumption that its * Carry out a runtime resume of a device under the assumption that its
* pm_domain field points to the domain member of an object of type * pm_domain field points to the domain member of an object of type
* struct generic_pm_domain representing a PM domain consisting of I/O devices. * struct generic_pm_domain representing a PM domain consisting of I/O devices.
*/ */
static int pm_genpd_runtime_resume(struct device *dev) static int genpd_runtime_resume(struct device *dev)
{ {
struct generic_pm_domain *genpd; struct generic_pm_domain *genpd;
struct gpd_timing_data *td = &dev_gpd_data(dev)->td; struct gpd_timing_data *td = &dev_gpd_data(dev)->td;
...@@ -1498,8 +1498,8 @@ void pm_genpd_init(struct generic_pm_domain *genpd, ...@@ -1498,8 +1498,8 @@ void pm_genpd_init(struct generic_pm_domain *genpd,
genpd->device_count = 0; genpd->device_count = 0;
genpd->max_off_time_ns = -1; genpd->max_off_time_ns = -1;
genpd->max_off_time_changed = true; genpd->max_off_time_changed = true;
genpd->domain.ops.runtime_suspend = pm_genpd_runtime_suspend; genpd->domain.ops.runtime_suspend = genpd_runtime_suspend;
genpd->domain.ops.runtime_resume = pm_genpd_runtime_resume; genpd->domain.ops.runtime_resume = genpd_runtime_resume;
genpd->domain.ops.prepare = pm_genpd_prepare; genpd->domain.ops.prepare = pm_genpd_prepare;
genpd->domain.ops.suspend = pm_genpd_suspend; genpd->domain.ops.suspend = pm_genpd_suspend;
genpd->domain.ops.suspend_late = pm_genpd_suspend_late; genpd->domain.ops.suspend_late = pm_genpd_suspend_late;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment