diff options
Diffstat (limited to 'include/linux/pm_domain.h')
-rw-r--r-- | include/linux/pm_domain.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index cb8d84090cfb..776c546d581a 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h | |||
@@ -239,6 +239,8 @@ unsigned int of_genpd_opp_to_performance_state(struct device *dev, | |||
239 | int genpd_dev_pm_attach(struct device *dev); | 239 | int genpd_dev_pm_attach(struct device *dev); |
240 | struct device *genpd_dev_pm_attach_by_id(struct device *dev, | 240 | struct device *genpd_dev_pm_attach_by_id(struct device *dev, |
241 | unsigned int index); | 241 | unsigned int index); |
242 | struct device *genpd_dev_pm_attach_by_name(struct device *dev, | ||
243 | char *name); | ||
242 | #else /* !CONFIG_PM_GENERIC_DOMAINS_OF */ | 244 | #else /* !CONFIG_PM_GENERIC_DOMAINS_OF */ |
243 | static inline int of_genpd_add_provider_simple(struct device_node *np, | 245 | static inline int of_genpd_add_provider_simple(struct device_node *np, |
244 | struct generic_pm_domain *genpd) | 246 | struct generic_pm_domain *genpd) |
@@ -290,6 +292,12 @@ static inline struct device *genpd_dev_pm_attach_by_id(struct device *dev, | |||
290 | return NULL; | 292 | return NULL; |
291 | } | 293 | } |
292 | 294 | ||
295 | static inline struct device *genpd_dev_pm_attach_by_name(struct device *dev, | ||
296 | char *name) | ||
297 | { | ||
298 | return NULL; | ||
299 | } | ||
300 | |||
293 | static inline | 301 | static inline |
294 | struct generic_pm_domain *of_genpd_remove_last(struct device_node *np) | 302 | struct generic_pm_domain *of_genpd_remove_last(struct device_node *np) |
295 | { | 303 | { |
@@ -301,6 +309,8 @@ struct generic_pm_domain *of_genpd_remove_last(struct device_node *np) | |||
301 | int dev_pm_domain_attach(struct device *dev, bool power_on); | 309 | int dev_pm_domain_attach(struct device *dev, bool power_on); |
302 | struct device *dev_pm_domain_attach_by_id(struct device *dev, | 310 | struct device *dev_pm_domain_attach_by_id(struct device *dev, |
303 | unsigned int index); | 311 | unsigned int index); |
312 | struct device *dev_pm_domain_attach_by_name(struct device *dev, | ||
313 | char *name); | ||
304 | void dev_pm_domain_detach(struct device *dev, bool power_off); | 314 | void dev_pm_domain_detach(struct device *dev, bool power_off); |
305 | void dev_pm_domain_set(struct device *dev, struct dev_pm_domain *pd); | 315 | void dev_pm_domain_set(struct device *dev, struct dev_pm_domain *pd); |
306 | #else | 316 | #else |
@@ -313,6 +323,11 @@ static inline struct device *dev_pm_domain_attach_by_id(struct device *dev, | |||
313 | { | 323 | { |
314 | return NULL; | 324 | return NULL; |
315 | } | 325 | } |
326 | static inline struct device *dev_pm_domain_attach_by_name(struct device *dev, | ||
327 | char *name) | ||
328 | { | ||
329 | return NULL; | ||
330 | } | ||
316 | static inline void dev_pm_domain_detach(struct device *dev, bool power_off) {} | 331 | static inline void dev_pm_domain_detach(struct device *dev, bool power_off) {} |
317 | static inline void dev_pm_domain_set(struct device *dev, | 332 | static inline void dev_pm_domain_set(struct device *dev, |
318 | struct dev_pm_domain *pd) {} | 333 | struct dev_pm_domain *pd) {} |