diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pm_opp.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h index 0330217abfad..cec2d4540914 100644 --- a/include/linux/pm_opp.h +++ b/include/linux/pm_opp.h | |||
| @@ -21,7 +21,7 @@ struct dev_pm_opp; | |||
| 21 | struct device; | 21 | struct device; |
| 22 | 22 | ||
| 23 | enum dev_pm_opp_event { | 23 | enum dev_pm_opp_event { |
| 24 | OPP_EVENT_ADD, OPP_EVENT_ENABLE, OPP_EVENT_DISABLE, | 24 | OPP_EVENT_ADD, OPP_EVENT_REMOVE, OPP_EVENT_ENABLE, OPP_EVENT_DISABLE, |
| 25 | }; | 25 | }; |
| 26 | 26 | ||
| 27 | #if defined(CONFIG_PM_OPP) | 27 | #if defined(CONFIG_PM_OPP) |
| @@ -44,6 +44,7 @@ struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev, | |||
| 44 | 44 | ||
| 45 | int dev_pm_opp_add(struct device *dev, unsigned long freq, | 45 | int dev_pm_opp_add(struct device *dev, unsigned long freq, |
| 46 | unsigned long u_volt); | 46 | unsigned long u_volt); |
| 47 | void dev_pm_opp_remove(struct device *dev, unsigned long freq); | ||
| 47 | 48 | ||
| 48 | int dev_pm_opp_enable(struct device *dev, unsigned long freq); | 49 | int dev_pm_opp_enable(struct device *dev, unsigned long freq); |
| 49 | 50 | ||
| @@ -90,6 +91,10 @@ static inline int dev_pm_opp_add(struct device *dev, unsigned long freq, | |||
| 90 | return -EINVAL; | 91 | return -EINVAL; |
| 91 | } | 92 | } |
| 92 | 93 | ||
| 94 | static inline void dev_pm_opp_remove(struct device *dev, unsigned long freq) | ||
| 95 | { | ||
| 96 | } | ||
| 97 | |||
| 93 | static inline int dev_pm_opp_enable(struct device *dev, unsigned long freq) | 98 | static inline int dev_pm_opp_enable(struct device *dev, unsigned long freq) |
| 94 | { | 99 | { |
| 95 | return 0; | 100 | return 0; |
| @@ -109,11 +114,16 @@ static inline struct srcu_notifier_head *dev_pm_opp_get_notifier( | |||
| 109 | 114 | ||
| 110 | #if defined(CONFIG_PM_OPP) && defined(CONFIG_OF) | 115 | #if defined(CONFIG_PM_OPP) && defined(CONFIG_OF) |
| 111 | int of_init_opp_table(struct device *dev); | 116 | int of_init_opp_table(struct device *dev); |
| 117 | void of_free_opp_table(struct device *dev); | ||
| 112 | #else | 118 | #else |
| 113 | static inline int of_init_opp_table(struct device *dev) | 119 | static inline int of_init_opp_table(struct device *dev) |
| 114 | { | 120 | { |
| 115 | return -EINVAL; | 121 | return -EINVAL; |
| 116 | } | 122 | } |
| 123 | |||
| 124 | static inline void of_free_opp_table(struct device *dev) | ||
| 125 | { | ||
| 126 | } | ||
| 117 | #endif | 127 | #endif |
| 118 | 128 | ||
| 119 | #endif /* __LINUX_OPP_H__ */ | 129 | #endif /* __LINUX_OPP_H__ */ |
