]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitcd323b2b5aba0d9920b116866efc7ebfd2d2052c
tree2958a195e78ec92931f8010fe4bcca929d1aaedb
parentf05f4821268d9c5904fe60c859390360b2898783
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