diff options
author | Amit Kucheria <amit.kucheria@linaro.org> | 2019-03-20 16:17:55 +0300 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2019-05-14 16:59:19 +0300 |
commit | 1b6e3e517fadcfbbe0f88eb676ebffafc20fd49c (patch) | |
tree | c6e43fd07dd6b746922852dbba61e3029808e010 /drivers/thermal/qcom/tsens-v2.c | |
parent | 66ad8a100953dc1433c3ead8c473746d60c05693 (diff) | |
download | linux-1b6e3e517fadcfbbe0f88eb676ebffafc20fd49c.tar.xz |
drivers: thermal: tsens: Introduce IP-specific max_sensor count
The IP can support 'm' sensors while the platform can enable 'n' sensors
of the 'm' where n <= m.
Track maximum sensors supported by the IP so that we can correctly track
what subset of the sensors are supported on the platform.
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/qcom/tsens-v2.c')
-rw-r--r-- | drivers/thermal/qcom/tsens-v2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thermal/qcom/tsens-v2.c b/drivers/thermal/qcom/tsens-v2.c index 788d5886cd1c..01ec1b2681f2 100644 --- a/drivers/thermal/qcom/tsens-v2.c +++ b/drivers/thermal/qcom/tsens-v2.c @@ -88,6 +88,7 @@ static const struct tsens_features tsens_v2_feat = { .crit_int = 1, .adc = 0, .srot_split = 1, + .max_sensors = 16, }; static const struct reg_field tsens_v2_regfields[MAX_REGFIELDS] = { |