thermal/drivers/hisi: Set the thermal zone private data to the sensor pointer
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 25 Sep 2018 09:03:01 +0000 (11:03 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 23 Oct 2018 00:42:41 +0000 (17:42 -0700)
commit49e778d1c750d5b1f773edeb93dfef963bef3f21
tree224647a9696eb6e4b9844aa85ddcf8248e8cac1a
parent9c9ae8da710639790f1d45b1a55d28ee70734c11
thermal/drivers/hisi: Set the thermal zone private data to the sensor pointer

Store the sensor pointer in the thermal zone private data and use it
in the callback functions. That allows to continue the conversion to
sensor oriented code where the pointers are the sensors.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/hisi_thermal.c