thermal: Use IS_ENABLED instead of #ifdef
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 6 Jul 2015 07:46:16 +0000 (09:46 +0200)
committerZhang Rui <rui.zhang@intel.com>
Mon, 3 Aug 2015 15:15:51 +0000 (23:15 +0800)
commit79e5421cf0bd9b3e56f523e95e3511757edb9616
treece7dd7b6a8a11da4a9406a360d69189f0a47f9bd
parentdbdf2532b46256584447cd7e742bfb1b31ac56c4
thermal: Use IS_ENABLED instead of #ifdef

Use IS_ENABLED(CONFIG_THERMAL_EMULATION) to make the code more readable
and to get rid of the addtional #ifdef around the variable definitions
in thermal_zone_get_temp().

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/thermal_core.c