]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1bf4a9018ad789b9cba9bd204e0376b87d05979
tree224647a9696eb6e4b9844aa85ddcf8248e8cac1a
parentfd3856a14803375a98b009eedafdfd5cff84893d
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