]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ti-ads124s08: Use gpiod_set_value_cansleep()
authorFabio Estevam <festevam@gmail.com>
Fri, 22 Nov 2024 16:43:08 +0000 (13:43 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 7 Dec 2024 17:23:42 +0000 (17:23 +0000)
commit2a8e34096ec70d73ebb6d9920688ea312700cbd9
tree714333602104aac9b35e25552f5fa59ea9d52b2e
parent75f339d3ecd38cb1ce05357d647189d4a7f7ed08
iio: adc: ti-ads124s08: Use gpiod_set_value_cansleep()

Using gpiod_set_value() to control the reset GPIO causes some verbose
warnings during boot when the reset GPIO is controlled by an I2C IO
expander.

As the caller can sleep, use the gpiod_set_value_cansleep() variant to
fix the issue.

Tested on a custom i.MX93 board with a ADS124S08 ADC.

Cc: stable@kernel.org
Fixes: e717f8c6dfec ("iio: adc: Add the TI ads124s08 ADC code")
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Link: https://patch.msgid.link/20241122164308.390340-1-festevam@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-ads124s08.c