aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm_opp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pm_opp.h')
-rw-r--r--include/linux/pm_opp.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h
index a6685b3dde26..51ec727b4824 100644
--- a/include/linux/pm_opp.h
+++ b/include/linux/pm_opp.h
@@ -121,6 +121,8 @@ struct opp_table *dev_pm_opp_set_prop_name(struct device *dev, const char *name)
121void dev_pm_opp_put_prop_name(struct opp_table *opp_table); 121void dev_pm_opp_put_prop_name(struct opp_table *opp_table);
122struct opp_table *dev_pm_opp_set_regulators(struct device *dev, const char * const names[], unsigned int count); 122struct opp_table *dev_pm_opp_set_regulators(struct device *dev, const char * const names[], unsigned int count);
123void dev_pm_opp_put_regulators(struct opp_table *opp_table); 123void dev_pm_opp_put_regulators(struct opp_table *opp_table);
124struct opp_table *dev_pm_opp_set_clkname(struct device *dev, const char * name);
125void dev_pm_opp_put_clkname(struct opp_table *opp_table);
124struct opp_table *dev_pm_opp_register_set_opp_helper(struct device *dev, int (*set_opp)(struct dev_pm_set_opp_data *data)); 126struct opp_table *dev_pm_opp_register_set_opp_helper(struct device *dev, int (*set_opp)(struct dev_pm_set_opp_data *data));
125void dev_pm_opp_register_put_opp_helper(struct opp_table *opp_table); 127void dev_pm_opp_register_put_opp_helper(struct opp_table *opp_table);
126int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq); 128int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq);
@@ -257,6 +259,13 @@ static inline struct opp_table *dev_pm_opp_set_regulators(struct device *dev, co
257 259
258static inline void dev_pm_opp_put_regulators(struct opp_table *opp_table) {} 260static inline void dev_pm_opp_put_regulators(struct opp_table *opp_table) {}
259 261
262static inline struct opp_table *dev_pm_opp_set_clkname(struct device *dev, const char * name)
263{
264 return ERR_PTR(-ENOTSUPP);
265}
266
267static inline void dev_pm_opp_put_clkname(struct opp_table *opp_table) {}
268
260static inline int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq) 269static inline int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq)
261{ 270{
262 return -ENOTSUPP; 271 return -ENOTSUPP;