]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: generic-adc: silence info message for IIO_TEMP channels
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Tue, 7 Jan 2020 23:20:44 +0000 (00:20 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 27 Jan 2020 09:24:32 +0000 (10:24 +0100)
commit386d68891cec5032d4480e1ee280b55eb23ea860
tree4dc2d2ceeec92a4fb4b5a50e67913de1af44fb43
parent12a419a4dd9b609e49ca5d7b0461115e5f51022b
thermal: generic-adc: silence info message for IIO_TEMP channels

Since commit b9e61c0cc7d669 ("thermal: generic-adc: make lookup table
optional") "generic-adc-thermal" can be used with an IIO_TEMP channel.
In this case the following message is logged at probe time:
  no lookup table, assuming DAC channel returns milliCelcius

Silence this info message if the channel type is known to be in
milli celsius. Keep this message when the channel type is unknown or not
of type temperature.

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-3-martin.blumenstingl@googlemail.com
drivers/thermal/thermal-generic-adc.c