thermal: of-thermal: Fix setting of set_emul_temp hook
authorKeerthy <j-keerthy@ti.com>
Thu, 2 Jun 2016 08:54:50 +0000 (14:24 +0530)
committerZhang Rui <rui.zhang@intel.com>
Fri, 19 Aug 2016 06:47:18 +0000 (14:47 +0800)
commit00b7b3c2709af6443499435c75e20fcde21beedc
tree10877008ab0718c60259ba64c33a67bc494292aa
parent58be645a6893d1e867da87bb154fb751805ee9f6
thermal: of-thermal: Fix setting of set_emul_temp hook

Currently thermal zone set_emul_temp is set unconditionally
with of_thermal_set_emul_temp function. Set this only if the
set_emul_temp hook is provided for thermal_zone_of_device_ops.

This fixes emul_temp failures on platforms for which set_emul_temp
hook is not populated.

Fixes: "184a4bf623f (thermal: of: Extend current
of-thermal.c code to allow setting emulated temp)"
Suggested-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Conflicts:
drivers/thermal/of-thermal.c
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/of-thermal.c
This page took 0.025006 seconds and 5 git commands to generate.