]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: lpc32xx: Add scale feature
authorGregory CLEMENT <gregory.clement@bootlin.com>
Fri, 15 Mar 2019 09:52:30 +0000 (10:52 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:20:02 +0000 (20:20 +0100)
commitee377badd49e84ac569ee249c5814b4cd68c2464
tree3aaedc7063f5639d61f2a6d780f961c6c91135d9
parent8f486fd6074e5ce9d75e53d76d4e7b91c1f52c3b
iio: adc: lpc32xx: Add scale feature

Until now this driver only exposed the raw value of the channels. With
this patch, the scale value is also exposed.

It depends of a regulator supply, and unlike most of the other driver, do
not having this regulator won't prevent to use the driver. The reason for
it is to allow to continue to use this driver with an old device tree. If
there is no regulator supply then the scale won't be exposed.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/lpc32xx_adc.c