]> git.baikalelectronics.ru Git - kernel.git/commit
thermal/drivers/hisi: Change the driver to be sensor oriented
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 25 Sep 2018 09:03:00 +0000 (11:03 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 23 Oct 2018 00:42:19 +0000 (17:42 -0700)
commitfd3856a14803375a98b009eedafdfd5cff84893d
tree5c303bf5e8d3783c49f14c46d7b96398e6272bda
parent80faa6762fe2d42a3841f215da3a54d9e4994e8a
thermal/drivers/hisi: Change the driver to be sensor oriented

In order to support multiple sensors, we have to change the code to
deal with sensors and not the hisi thermal structure.

Add a back pointer to the hisi thermal structure (containerof is not a
good option because later we convert the sensor field to a pointer).

Change the functions parameters to take a sensor instead of this hisi
thermal 'data' structure.

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