summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/qcom/tsens.h
diff options
context:
space:
mode:
authorAmit Kucheria <amit.kucheria@linaro.org>2018-09-12 11:52:49 +0200
committerEduardo Valentin <edubezval@gmail.com>2018-10-23 02:33:23 +0200
commit67b0f5e064cd7fb3ac79c49dcbf7720fa5dc4acd (patch)
tree6bece2482736e5a1eed1371feda057756560fb55 /drivers/thermal/qcom/tsens.h
parentthermal: tsens: Get rid of dead code (diff)
downloadlinux-67b0f5e064cd7fb3ac79c49dcbf7720fa5dc4acd.tar.xz
linux-67b0f5e064cd7fb3ac79c49dcbf7720fa5dc4acd.zip
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>
Diffstat (limited to 'drivers/thermal/qcom/tsens.h')
-rw-r--r--drivers/thermal/qcom/tsens.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/qcom/tsens.h b/drivers/thermal/qcom/tsens.h
index 8207610f326a..58e98c4d3a8b 100644
--- a/drivers/thermal/qcom/tsens.h
+++ b/drivers/thermal/qcom/tsens.h
@@ -69,7 +69,7 @@ struct tsens_context {
struct tsens_device {
struct device *dev;
u32 num_sensors;
- struct regmap *map;
+ struct regmap *tm_map;
u32 tm_offset;
struct tsens_context ctx;
const struct tsens_ops *ops;