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)
commitb61a9d32d2d7339aaa59c50f6e33e8a79f7944e7
treeeb9eed7641c786d74dccacc4815db192082f44fa
parent16e8f8fed48e6089a80ad5de8ac71a1ad0569888
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