]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 18:46:10 +0000 (19:46 +0100)
commit304df171cc6610f120acb5b2cba5a9c179fbcfd0
treee1b76635eebde787f68340cd258c8feaf70ebac5
parent179c71c5a21d3d614a58da600882984b77eaaa32
thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set

commit 03334ba8b425b2ad275c8f390cf83c7b081c3095 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thermal/thermal_hwmon.h