iio: adc: ti_am335x_adc: Add the scale information
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 15 Oct 2021 08:15:02 +0000 (10:15 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 21 Oct 2021 08:24:01 +0000 (09:24 +0100)
commit3af9935499056a2af5b909b39cc0cbc358abaf7e
treef8ec984ef578de065da47579b5e1f22f996eb2bb
parent789e5ebcc61b72a71717b02b62e6c6f10fdbb722
iio: adc: ti_am335x_adc: Add the scale information

Without the scale, the values returned to the user are just a picture of
the input voltage against the full scale range of the ADC. We need to
provide the actual conversion factor to get milli-Volts values.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211015081506.933180-45-miquel.raynal@bootlin.com
drivers/iio/adc/ti_am335x_adc.c