thermal/drivers/hisi: Change the platform data pointer to sensor ops
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 25 Sep 2018 09:02:59 +0000 (11:02 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 23 Oct 2018 00:41:48 +0000 (17:41 -0700)
commitc90aaeccc7c6a8967f3efd43048eeae51072251c
treeae19772ca44898bf11de17b72cbe5485e8d393fd
parentd1d2c290b3c04b65fa6132eeebe50a070746d8f6
thermal/drivers/hisi: Change the platform data pointer to sensor ops

Group the temperature sensor specific ops into a single structure and
assign it to hisi thermal data structure.

Change the platform data pointer to reference the specific sensor ops
instead of the probe functions.

Moving out those allow to split the code to self-encapsulate the
sensor object.

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