aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm_runtime.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2011-07-01 16:13:44 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2011-07-02 08:29:57 -0400
commit3d5c30367cbc0c55c93bb158e824e00badc7ddc4 (patch)
tree073ab59dfbf0514e9ba5eb37431a337c5511af33 /include/linux/pm_runtime.h
parentb7b95920aa2e89e655afe9913ee0e55855ceda90 (diff)
PM: Rename clock management functions
The common PM clock management functions may be used for system suspend/resume as well as for runtime PM, so rename them accordingly. Modify kerneldoc comments describing these functions and kernel messages printed by them, so that they refer to power management in general rather that to runtime PM. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Reviewed-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'include/linux/pm_runtime.h')
-rw-r--r--include/linux/pm_runtime.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/include/linux/pm_runtime.h b/include/linux/pm_runtime.h
index 1bd5063a2cc8..dfb8539ed686 100644
--- a/include/linux/pm_runtime.h
+++ b/include/linux/pm_runtime.h
@@ -252,36 +252,36 @@ struct pm_clk_notifier_block {
252}; 252};
253 253
254#ifdef CONFIG_PM_CLK 254#ifdef CONFIG_PM_CLK
255extern int pm_runtime_clk_init(struct device *dev); 255extern int pm_clk_init(struct device *dev);
256extern void pm_runtime_clk_destroy(struct device *dev); 256extern void pm_clk_destroy(struct device *dev);
257extern int pm_runtime_clk_add(struct device *dev, const char *con_id); 257extern int pm_clk_add(struct device *dev, const char *con_id);
258extern void pm_runtime_clk_remove(struct device *dev, const char *con_id); 258extern void pm_clk_remove(struct device *dev, const char *con_id);
259extern int pm_runtime_clk_suspend(struct device *dev); 259extern int pm_clk_suspend(struct device *dev);
260extern int pm_runtime_clk_resume(struct device *dev); 260extern int pm_clk_resume(struct device *dev);
261#else 261#else
262static inline int pm_runtime_clk_init(struct device *dev) 262static inline int pm_clk_init(struct device *dev)
263{ 263{
264 return -EINVAL; 264 return -EINVAL;
265} 265}
266static inline void pm_runtime_clk_destroy(struct device *dev) 266static inline void pm_clk_destroy(struct device *dev)
267{ 267{
268} 268}
269static inline int pm_runtime_clk_add(struct device *dev, const char *con_id) 269static inline int pm_clk_add(struct device *dev, const char *con_id)
270{ 270{
271 return -EINVAL; 271 return -EINVAL;
272} 272}
273static inline void pm_runtime_clk_remove(struct device *dev, const char *con_id) 273static inline void pm_clk_remove(struct device *dev, const char *con_id)
274{ 274{
275} 275}
276#define pm_runtime_clock_suspend NULL 276#define pm_clk_suspend NULL
277#define pm_runtime_clock_resume NULL 277#define pm_clk_resume NULL
278#endif 278#endif
279 279
280#ifdef CONFIG_HAVE_CLK 280#ifdef CONFIG_HAVE_CLK
281extern void pm_runtime_clk_add_notifier(struct bus_type *bus, 281extern void pm_clk_add_notifier(struct bus_type *bus,
282 struct pm_clk_notifier_block *clknb); 282 struct pm_clk_notifier_block *clknb);
283#else 283#else
284static inline void pm_runtime_clk_add_notifier(struct bus_type *bus, 284static inline void pm_clk_add_notifier(struct bus_type *bus,
285 struct pm_clk_notifier_block *clknb) 285 struct pm_clk_notifier_block *clknb)
286{ 286{
287} 287}