Commit cfb25557 authored by Amit Kucheria's avatar Amit Kucheria Committed by Nicolas Dechesne
Browse files

UPSTREAM: 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: default avatarAmit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
(cherry picked from commit c130a760)
Signed-off-by: default avatarKhasim Syed Mohammed <khasim.mohammed@linaro.org>
parent 2a7e9f70
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment