thermal/drivers/hisi: Prepare to add support for other hisi platforms
authorKevin Wangtao <kevin.wangtao@linaro.org>
Sun, 22 Oct 2017 08:54:34 +0000 (10:54 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 1 Nov 2017 02:32:18 +0000 (19:32 -0700)
commita160a465297362c515db28848b79eb876ceab9c0
treead7122f5543ae4666bf6b5d49965fafc839c4d17
parent5ed82b79e526f755bf0630a7c47a31ca2f4a7ad5
thermal/drivers/hisi: Prepare to add support for other hisi platforms

For platform compatibility, add the tsensor ops to a thermal data
structure. Each platform has its own probe function to register proper
tsensor ops function to the pointer, platform related resource request
are also implemented in the platform probe function.

Signed-off-by: Kevin Wangtao <kevin.wangtao@linaro.org>
Tested-by: Daniel Lezcano <daniel.lezcano@linaro.org> # hikey6220
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/hisi_thermal.c