]> 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)
commit630a48692e3a018a69f1914b2d81c8574e7824e3
tree4dc2d2ceeec92a4fb4b5a50e67913de1af44fb43
parent214a85ebf3f68df54b486e0eb1c04d2c6a376a0a
thermal: generic-adc: silence info message for IIO_TEMP channels

Since commit 7091a003a9fac4 ("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