Skip to content

Commit 6eaf49f

Browse files
Fabio Estevamjic23
authored andcommitted
iio: adc: ti-ads124s08: Switch to fsleep()
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]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Fabio Estevam <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 1093f83 commit 6eaf49f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/adc/ti-ads124s08.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ static int ads124s_reset(struct iio_dev *indio_dev)
184184

185185
if (priv->reset_gpio) {
186186
gpiod_set_value_cansleep(priv->reset_gpio, 0);
187-
udelay(200);
187+
fsleep(200);
188188
gpiod_set_value_cansleep(priv->reset_gpio, 1);
189189
} else {
190190
return ads124s_write_cmd(indio_dev, ADS124S08_CMD_RESET);

0 commit comments

Comments
 (0)