]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2025 12:34:46 +0000 (13:34 +0100)
commit26016d08c42ccd4052d6a4e5e7845f1eff208d7c
tree6a7fa1b573e13acc36a5a1f01bdcfd212fe32e6b
parent7bc7e9d6bd0fade13b8dc1a4efd65cb24ae0e814
iio: adc: ti-ads124s08: Use gpiod_set_value_cansleep()

commit 2a8e34096ec70d73ebb6d9920688ea312700cbd9 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/ti-ads124s08.c