Skip to content

Commit c86b3de

Browse files
arndbEduardo Valentin
authored andcommitted
thermal: fix thermal_zone_bind_cooling_device prototype
When the prototype for thermal_zone_bind_cooling_device changed, the static inline wrapper function was left alone, which in theory can cause build warnings: I have seen this error in the past: drivers/thermal/db8500_thermal.c: In function 'db8500_cdev_bind': drivers/thermal/db8500_thermal.c:78:9: error: too many arguments to function 'thermal_zone_bind_cooling_device' ret = thermal_zone_bind_cooling_device(thermal, i, cdev, while this one no longer shows up, there is no doubt that the prototype is still wrong, so let's just fix it anyway. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 6cd9e9f ("thermal: of: fix cooling device weights in device tree") Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
1 parent e421746 commit c86b3de

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/linux/thermal.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,8 @@ static inline void thermal_zone_device_unregister(
438438
static inline int thermal_zone_bind_cooling_device(
439439
struct thermal_zone_device *tz, int trip,
440440
struct thermal_cooling_device *cdev,
441-
unsigned long upper, unsigned long lower)
441+
unsigned long upper, unsigned long lower,
442+
unsigned int weight)
442443
{ return -ENODEV; }
443444
static inline int thermal_zone_unbind_cooling_device(
444445
struct thermal_zone_device *tz, int trip,

0 commit comments

Comments
 (0)