]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set
authorEduardo Valentin <edubezval@gmail.com>
Wed, 2 Jan 2019 00:34:03 +0000 (00:34 +0000)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 2 Jan 2019 12:43:00 +0000 (04:43 -0800)
commit580d4d62b0e7ebc035c011df9c3785d6dd7333da
treef7f1c200a3fee4e040e13c781f2821bbacc00ebd
parent2ce50154b46be47f05cfe701755255aeb47470d2
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: d89e84746abb ("thermal: hwmon: move hwmon support to single file")
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/thermal_hwmon.h