diff options
author | Amit Kucheria <amit.kucheria@linaro.org> | 2019-03-20 14:17:55 +0100 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2019-05-14 15:59:19 +0200 |
commit | 1b6e3e517fadcfbbe0f88eb676ebffafc20fd49c (patch) | |
tree | c6e43fd07dd6b746922852dbba61e3029808e010 /drivers/thermal/qcom/tsens.h | |
parent | drivers: thermal: tsens: change data type for sensor IDs (diff) | |
download | linux-1b6e3e517fadcfbbe0f88eb676ebffafc20fd49c.tar.xz linux-1b6e3e517fadcfbbe0f88eb676ebffafc20fd49c.zip |
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.h')
-rw-r--r-- | drivers/thermal/qcom/tsens.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thermal/qcom/tsens.h b/drivers/thermal/qcom/tsens.h index 527c42cfd2d5..080e15a09ac2 100644 --- a/drivers/thermal/qcom/tsens.h +++ b/drivers/thermal/qcom/tsens.h @@ -242,12 +242,14 @@ enum regfield_ids { * @adc: do the sensors only output adc code (instead of temperature)? * @srot_split: does the IP neatly splits the register space into SROT and TM, * with SROT only being available to secure boot firmware? + * @max_sensors: maximum sensors supported by this version of the IP */ struct tsens_features { unsigned int ver_major; unsigned int crit_int:1; unsigned int adc:1; unsigned int srot_split:1; + unsigned int max_sensors; }; /** |