]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: tsens: Pass register offsets as private data
authorAmit Kucheria <amit.kucheria@linaro.org>
Wed, 12 Sep 2018 09:52:52 +0000 (15:22 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 23 Oct 2018 00:34:33 +0000 (17:34 -0700)
commitbb260710c87c03ea590bb575790f8a4beff2dadb
tree32acd533a49ed8af9cbcbb9903a917c1a10e6fb2
parent8a29ca978e8e88e4f833e04c1f2969fdeff3a587
thermal: tsens: Pass register offsets as private data

Registers have moved around across TSENS generations. For example, the
CTRL register was at offset 0x0 in the SROT region on msm8916 but is at
offset 0x4 in newer v2 based TSENS HW blocks.

Allow passing offsets of important registers so that we can continue to
use common functions.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/qcom/tsens-8916.c
drivers/thermal/qcom/tsens-8974.c
drivers/thermal/qcom/tsens-v2.c
drivers/thermal/qcom/tsens.c
drivers/thermal/qcom/tsens.h