All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: wfx: Replace udelay() by usleep_range() in bh.c
@ 2021-04-05  9:52 Fabio M. De Francesco
  2021-04-05 10:03 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio M. De Francesco @ 2021-04-05  9:52 UTC (permalink / raw)
  To: outreachy-kernel, jerome.pouiller, gregkh; +Cc: Fabio M. De Francesco

Replace udelay() by usleep_range() in bh.c according to checkpatch
message: "CHECK: usleep_range is preferred over udelay"

Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
---
 drivers/staging/wfx/bh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wfx/bh.c b/drivers/staging/wfx/bh.c
index ed53d0b45592..07ef6732973d 100644
--- a/drivers/staging/wfx/bh.c
+++ b/drivers/staging/wfx/bh.c
@@ -315,7 +315,7 @@ void wfx_bh_poll_irq(struct wfx_dev *wdev)
 			dev_err(wdev->dev, "time out while polling control register\n");
 			return;
 		}
-		udelay(200);
+		usleep_range(200, 300);
 	}
 	wfx_bh_request_rx(wdev);
 }
-- 
2.30.2



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-05 10:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-05  9:52 [PATCH] staging: wfx: Replace udelay() by usleep_range() in bh.c Fabio M. De Francesco
2021-04-05 10:03 ` Greg KH
2021-04-05 10:15   ` FMDF
2021-04-05 10:17     ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.