thermal: tsens: Rename map field in order to add a second address map
authorAmit Kucheria <amit.kucheria@linaro.org>
Wed, 12 Sep 2018 09:52:49 +0000 (15:22 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 23 Oct 2018 00:33:23 +0000 (17:33 -0700)
commit67b0f5e064cd7fb3ac79c49dcbf7720fa5dc4acd
tree6bece2482736e5a1eed1371feda057756560fb55
parentcaac52bce61116c4d645d80e38ed07e47a81a2e9
thermal: tsens: Rename map field in order to add a second address map

The TSENS driver currently only uses a limited set of registers from the TM
address space. So it was ok to map just that set of registers and call it
"map".

We'd now like to map a second set: SROT registers to introduce new
functionality. Rename the "map" field to a more appropriate "tm_map".

The 8960 doesn't have a clear split between TM and SROT registers. To avoid
complicating the data structure, it will switchover to using tm_map for its
maps.

There is no functional change with this patch.

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