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

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