]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: ti_am335x_adc: Gather the checks on the delays
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 15 Oct 2021 08:15:00 +0000 (10:15 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 21 Oct 2021 08:23:59 +0000 (09:23 +0100)
commit076d02e5f25133a2f987e26db91edb02e3ff110d
treeeb9eed7641c786d74dccacc4815db192082f44fa
parentb6cd01eb52c84aa222396782d00475396373677a
iio: adc: ti_am335x_adc: Gather the checks on the delays

Move the checks over the delays provided in the device tree to the
location where these values are read to clarify where they come from.

There are no functional changes besides the device structure used to
display the warnings: let's use the ADC instead of the MFD device.

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-43-miquel.raynal@bootlin.com
drivers/iio/adc/ti_am335x_adc.c