iio: adc: ti-ads124s08: Switch to fsleep()
PATCH 1/1 iio: adc: ti-ads124s08: Switch to fsleep()
From: Fabio Estevam <[email protected]>
According to Documentation/timers/delay_sleep_functions.rst, fsleep() is the preferred delay function to be used in non-atomic context, so switch to it accordingly.
Suggested-by Andy Shevchenko <[email protected]>
Signed-off-by Fabio Estevam <[email protected]>
--- drivers/iio/adc/ti-ads124s08.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/ti-ads124s08.c +1 -1
@@ -184,7 +184,7 @@ static int ads124s_reset(struct iio_dev *indio_dev)if (priv->reset_gpio) {gpiod_set_value_cansleep (priv->reset_gpio,0 ); -udelay (200 ); +fsleep (200 );gpiod_set_value_cansleep (priv->reset_gpio,1 ); }else {return ads124s_write_cmd (indio_dev,ADS124S08_CMD_RESET );
Signature · 1 line
2.34.1
Quoted 5 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
According to
Documentation/timers/delay_sleep_functions.rst,fsleep()is the preferred delay function to be used in non-atomic context, so switch to it accordingly.
Reviewed-by Andy Shevchenko <[email protected]>
Can you also change my email in other tags and email headers to be @linux.intel.com?
Signature · 2 lines
With Best Regards, Andy Shevchenko