diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/thermal.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 5f4705f46c2f..4a22099ed8c0 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h | |||
@@ -447,6 +447,11 @@ struct thermal_cooling_device *thermal_cooling_device_register(char *, void *, | |||
447 | struct thermal_cooling_device * | 447 | struct thermal_cooling_device * |
448 | thermal_of_cooling_device_register(struct device_node *np, char *, void *, | 448 | thermal_of_cooling_device_register(struct device_node *np, char *, void *, |
449 | const struct thermal_cooling_device_ops *); | 449 | const struct thermal_cooling_device_ops *); |
450 | struct thermal_cooling_device * | ||
451 | devm_thermal_of_cooling_device_register(struct device *dev, | ||
452 | struct device_node *np, | ||
453 | char *type, void *devdata, | ||
454 | const struct thermal_cooling_device_ops *ops); | ||
450 | void thermal_cooling_device_unregister(struct thermal_cooling_device *); | 455 | void thermal_cooling_device_unregister(struct thermal_cooling_device *); |
451 | struct thermal_zone_device *thermal_zone_get_zone_by_name(const char *name); | 456 | struct thermal_zone_device *thermal_zone_get_zone_by_name(const char *name); |
452 | int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp); | 457 | int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp); |
@@ -503,6 +508,14 @@ static inline struct thermal_cooling_device * | |||
503 | thermal_of_cooling_device_register(struct device_node *np, | 508 | thermal_of_cooling_device_register(struct device_node *np, |
504 | char *type, void *devdata, const struct thermal_cooling_device_ops *ops) | 509 | char *type, void *devdata, const struct thermal_cooling_device_ops *ops) |
505 | { return ERR_PTR(-ENODEV); } | 510 | { return ERR_PTR(-ENODEV); } |
511 | static inline struct thermal_cooling_device * | ||
512 | devm_thermal_of_cooling_device_register(struct device *dev, | ||
513 | struct device_node *np, | ||
514 | char *type, void *devdata, | ||
515 | const struct thermal_cooling_device_ops *ops) | ||
516 | { | ||
517 | return ERR_PTR(-ENODEV); | ||
518 | } | ||
506 | static inline void thermal_cooling_device_unregister( | 519 | static inline void thermal_cooling_device_unregister( |
507 | struct thermal_cooling_device *cdev) | 520 | struct thermal_cooling_device *cdev) |
508 | { } | 521 | { } |