aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal/thermal_hwmon.h
diff options
context:
space:
mode:
authorEduardo Valentin <edubezval@gmail.com>2019-01-01 19:34:03 -0500
committerEduardo Valentin <edubezval@gmail.com>2019-01-02 07:43:00 -0500
commit03334ba8b425b2ad275c8f390cf83c7b081c3095 (patch)
treef7f1c200a3fee4e040e13c781f2821bbacc00ebd /drivers/thermal/thermal_hwmon.h
parent0072a0c14d5b7cb72c611d396f143f5dcd73ebe2 (diff)
thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set
Avoid warnings like this: thermal_hwmon.h:29:1: warning: ‘thermal_remove_hwmon_sysfs’ defined but not used [-Wunused-function] thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) Fixes: 0dd88793aacd ("thermal: hwmon: move hwmon support to single file") Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/thermal_hwmon.h')
-rw-r--r--drivers/thermal/thermal_hwmon.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/thermal_hwmon.h b/drivers/thermal/thermal_hwmon.h
index 019f6f88224e..a160b9d62dd0 100644
--- a/drivers/thermal/thermal_hwmon.h
+++ b/drivers/thermal/thermal_hwmon.h
@@ -19,13 +19,13 @@
19int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz); 19int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz);
20void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz); 20void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz);
21#else 21#else
22static int 22static inline int
23thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) 23thermal_add_hwmon_sysfs(struct thermal_zone_device *tz)
24{ 24{
25 return 0; 25 return 0;
26} 26}
27 27
28static void 28static inline void
29thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) 29thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz)
30{ 30{
31} 31}