]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commite32cff6f6163fa03b41812eeab0f8d6a429ef416
tree3aaedc7063f5639d61f2a6d780f961c6c91135d9
parent9f29b00c582641b865d3476dd81944375415ae0e
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