thermal: update header and documentation
Subsystems (2)
PATCH 1/1 thermal: update header and documentation
The commit commit f991de53a8ab ("thermal: make device_register's type argument const") changed APIs, but only when CONFIG_THERMAL enabled case.
This patch is partial from https://lkml.org/lkml/2019/5/14/631 which tries to address the same concern,
Signed-off-by Wei Wang <[email protected]>
--- Documentation/driver-api/thermal/sysfs-api.rst | 4 ++-- include/linux/thermal.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
Documentation/driver-api/thermal/sysfs-api.rst +2 -2
@@ -39,7 +39,7 @@ temperature) and throttle appropriate devices. :: struct thermal_zone_device - *thermal_zone_device_register(char *type, + *thermal_zone_device_register(const char *type, int trips, int mask, void *devdata, struct thermal_zone_device_ops *ops, const struct thermal_zone_params *tzp,
@@ -221,7 +221,7 @@ temperature) and throttle appropriate devices. :: struct thermal_cooling_device - *thermal_cooling_device_register(char *name, + *thermal_cooling_device_register(const char *name, void *devdata, struct thermal_cooling_device_ops *) This interface function adds a new thermal cooling device (fan/processor/...)
include/linux/thermal.h +3 -3
@@ -501,12 +501,12 @@ static inline void thermal_zone_device_update(struct thermal_zone_device *tz,static inline void thermal_zone_set_trips (struct thermal_zone_device *tz) { }static inline struct thermal_cooling_device * -thermal_cooling_device_register (char *type,void *devdata, +thermal_cooling_device_register (const char *type,void *devdata,const struct thermal_cooling_device_ops *ops) {return ERR_PTR (-ENODEV ); }static inline struct thermal_cooling_device * -thermal_of_cooling_device_register (struct device_node *np, -char *type,void *devdata,const struct thermal_cooling_device_ops *ops) +thermal_of_cooling_device_register (struct device_node *np,const char *type, +void *devdata,const struct thermal_cooling_device_ops *ops) {return ERR_PTR (-ENODEV ); }static inline struct thermal_cooling_device * devm_thermal_of_cooling_device_register(struct device *dev,
Signature · 1 line
2.23.0.700.g56cf767bdb-goog