]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: qcom-spmi: Treat reg property as a single cell
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 18 Oct 2016 23:40:19 +0000 (16:40 -0700)
committerZhang Rui <rui.zhang@intel.com>
Wed, 23 Nov 2016 02:07:35 +0000 (10:07 +0800)
commitbed8aab0264b58f866f812e04a516acb38f1bbd0
tree2958a195e78ec92931f8010fe4bcca929d1aaedb
parent9a4ae1432d93debb01d8b0e05d8b22f967512cd2
thermal: qcom-spmi: Treat reg property as a single cell

We only read the first element of the reg property to figure out
the offset of the temperature sensor inside the PMIC.
Furthermore, we want to remove the second element in DT, so just
don't read the second element so that probe keeps working if we
change the DT in the future.

Cc: Ivan T. Ivanov <iivanov.xz@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/qcom-spmi-temp-alarm.c