]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: generic-adc: silence "no lookup table" on deferred probe
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Tue, 7 Jan 2020 23:20:43 +0000 (00:20 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 27 Jan 2020 09:24:32 +0000 (10:24 +0100)
commit12a419a4dd9b609e49ca5d7b0461115e5f51022b
treeea334ba2334799538e369b6574ccc875ecf537ca
parent188c800a07d1ac6543327bd263d49c875519f311
thermal: generic-adc: silence "no lookup table" on deferred probe

A "generic-adc-thermal" without "temperature-lookup-table" is perfectly
valid since commit b9e61c0cc7d669 ("thermal: generic-adc: make lookup
table optional"). On deferred probe the message "no lookup table,
assuming DAC channel returns milliCelcius" is still logged.
Prevent this message on deferred probe of the IIO channel by first
looking up the IIO channel.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200107232044.889075-2-martin.blumenstingl@googlemail.com
drivers/thermal/thermal-generic-adc.c