diff options
| author | James Calligeros <jcalligeros99@gmail.com> | 2026-05-03 22:23:24 +1000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-05-05 10:49:21 +0900 |
| commit | d0771f4995d3285756bf496cf6e346df99481f83 (patch) | |
| tree | 61501bf9bde0531ce498b1a4078fe87f37c2018a /scripts | |
| parent | 915f9860fe1c9f7eb6c48c299b2db64fd57ef32f (diff) | |
ASoC: tas2770: Deal with bogus initial temperature value
TAS2770 initialises the temperature readout registers to 0.
This value persists until the chip is fully powered up and
the ADC starts sampling. The ADC then persists the last sampled
temperature during software shutdown.
The ADC should therefore never return 0 in normal operating
conditions, so return -ENODATA and mark it as a fault condition
using HWMON_T_FAULT.
Fixes: ff73e2780169 ("ASoC: tas2770: expose die temp to hwmon")
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
