]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: generic-adc: make lookup table optional
authorJean-Francois Dagenais <jeff.dagenais@gmail.com>
Thu, 18 Apr 2019 16:37:32 +0000 (12:37 -0400)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 14 May 2019 14:00:28 +0000 (07:00 -0700)
commit7091a003a9fac455819fdea5af7f3d74f0736eaf
treec24a1197ecad07020ebede1884173ad00fd86060
parentff9de71ccd143ed70c3275aafbdf776e40b01475
thermal: generic-adc: make lookup table optional

Certain ADC channels, such as the xilinx-ams temperature channels, give
milliCelcius already when read with iio_read_channel_processed.

Rather than having to provide a 1:1 dummy lookup table, simply allow to
bypass the mechanism.

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/thermal-generic-adc.c