]> git.baikalelectronics.ru Git - kernel.git/commit
thermal/drivers/hisi: Fix number of sensors on hi3660
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 30 Nov 2018 08:00:32 +0000 (09:00 +0100)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 11 Dec 2018 04:13:09 +0000 (20:13 -0800)
commit141053d2ef19f6a2bf3bfb84a17fff89b5061a7d
treec99a7a20d828d65cf20ce2499cde9fd5b5793221
parent06de533ad050e5d683011a0e4aac1d70ddd1a7b0
thermal/drivers/hisi: Fix number of sensors on hi3660

Without this patch the thermal driver is broken on hi3660.

The dual sensors support patchset was partially merged, unfortunately
the dual thermal zones definition is not available in the DT yet, so
when the driver tries to register all the sensors that fails.

By reducing to 1 the number of sensors on the hi3660, we switch back
to the previous functionnality.

Fixes: 1e36014c1f9d (thermal/drivers/hisi: Add the dual clusters sensors for hi3660)
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/hisi_thermal.c