aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2016-03-31 05:21:26 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-04-21 20:29:17 -0400
commit795bd2e7e86967ced927948eff08fe8201ba5fc3 (patch)
tree9bad3e349f6e22c58c66a17f224cd5bb1b1d0645
parent9df3921e026532eb3bd2904745d990c0a9f0b4e4 (diff)
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: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/base/power/domain.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index c62687d9fa5a..75b994a63e71 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -372,14 +372,14 @@ static void genpd_power_off_work_fn(struct work_struct *work)
372} 372}
373 373
374/** 374/**
375 * pm_genpd_runtime_suspend - Suspend a device belonging to I/O PM domain. 375 * genpd_runtime_suspend - Suspend a device belonging to I/O PM domain.
376 * @dev: Device to suspend. 376 * @dev: Device to suspend.
377 * 377 *
378 * Carry out a runtime suspend of a device under the assumption that its 378 * Carry out a runtime suspend of a device under the assumption that its
379 * pm_domain field points to the domain member of an object of type 379 * pm_domain field points to the domain member of an object of type
380 * struct generic_pm_domain representing a PM domain consisting of I/O devices. 380 * struct generic_pm_domain representing a PM domain consisting of I/O devices.
381 */ 381 */
382static int pm_genpd_runtime_suspend(struct device *dev) 382static int genpd_runtime_suspend(struct device *dev)
383{ 383{
384 struct generic_pm_domain *genpd; 384 struct generic_pm_domain *genpd;
385 bool (*suspend_ok)(struct device *__dev); 385 bool (*suspend_ok)(struct device *__dev);
@@ -446,14 +446,14 @@ static int pm_genpd_runtime_suspend(struct device *dev)
446} 446}
447 447
448/** 448/**
449 * pm_genpd_runtime_resume - Resume a device belonging to I/O PM domain. 449 * genpd_runtime_resume - Resume a device belonging to I/O PM domain.
450 * @dev: Device to resume. 450 * @dev: Device to resume.
451 * 451 *
452 * Carry out a runtime resume of a device under the assumption that its 452 * Carry out a runtime resume of a device under the assumption that its
453 * pm_domain field points to the domain member of an object of type 453 * pm_domain field points to the domain member of an object of type
454 * struct generic_pm_domain representing a PM domain consisting of I/O devices. 454 * struct generic_pm_domain representing a PM domain consisting of I/O devices.
455 */ 455 */
456static int pm_genpd_runtime_resume(struct device *dev) 456static int genpd_runtime_resume(struct device *dev)
457{ 457{
458 struct generic_pm_domain *genpd; 458 struct generic_pm_domain *genpd;
459 struct gpd_timing_data *td = &dev_gpd_data(dev)->td; 459 struct gpd_timing_data *td = &dev_gpd_data(dev)->td;
@@ -1498,8 +1498,8 @@ void pm_genpd_init(struct generic_pm_domain *genpd,
1498 genpd->device_count = 0; 1498 genpd->device_count = 0;
1499 genpd->max_off_time_ns = -1; 1499 genpd->max_off_time_ns = -1;
1500 genpd->max_off_time_changed = true; 1500 genpd->max_off_time_changed = true;
1501 genpd->domain.ops.runtime_suspend = pm_genpd_runtime_suspend; 1501 genpd->domain.ops.runtime_suspend = genpd_runtime_suspend;
1502 genpd->domain.ops.runtime_resume = pm_genpd_runtime_resume; 1502 genpd->domain.ops.runtime_resume = genpd_runtime_resume;
1503 genpd->domain.ops.prepare = pm_genpd_prepare; 1503 genpd->domain.ops.prepare = pm_genpd_prepare;
1504 genpd->domain.ops.suspend = pm_genpd_suspend; 1504 genpd->domain.ops.suspend = pm_genpd_suspend;
1505 genpd->domain.ops.suspend_late = pm_genpd_suspend_late; 1505 genpd->domain.ops.suspend_late = pm_genpd_suspend_late;