summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/rcar_thermal.c
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2015-02-14 02:28:02 +0100
committerEduardo Valentin <edubezval@gmail.com>2015-02-24 19:40:42 +0100
commit12ca7188468ee29c4e717f73db4bf43c90954fc7 (patch)
tree739998e96fa3c1d9fd2c7ec33806e41a064e1b1c /drivers/thermal/rcar_thermal.c
parentti-soc-thermal: Delete an unnecessary check before the function call "cpufreq... (diff)
downloadlinux-12ca7188468ee29c4e717f73db4bf43c90954fc7.tar.xz
linux-12ca7188468ee29c4e717f73db4bf43c90954fc7.zip
thermal: Introduce dummy functions when thermal is not defined
When CONFIG_THERMAL is not enabled, it is better to introduce equivalent dummy functions in the exported header than to introduce #ifdeffery in drivers using the function. This will prevent issues such as that reported in: http://www.spinics.net/lists/linux-next/msg31573.html While at it switch over to IS_ENABLED for thermal macros to allow for thermal framework to be built as framework and relevant APIs be usable by relevant drivers as a result. Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/rcar_thermal.c')
0 files changed, 0 insertions, 0 deletions