Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH] drivers: staging: rtl8723bs: Replace msleep() with usleep_range().
@ 2024-10-16 11:12 Aymen Khalfa
  2024-10-16 11:13 ` Hans de Goede
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Aymen Khalfa @ 2024-10-16 11:12 UTC (permalink / raw)
  To: gregkh, hdegoede, Larry.Finger; +Cc: linux-staging, Aymen Khalfa

-Fix checkpatch.pl warning by replacing msleep() with usleep_range() as
recommended in the documentation.

Signed-off-by: Aymen Khalfa <a.khalfa.1012@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
index dbfcbac3d855..26e125f556e9 100644
--- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
+++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
@@ -429,7 +429,7 @@ s32 LPS_RF_ON_check(struct adapter *padapter, u32 delay_ms)
 			err = -1;
 			break;
 		}
-		msleep(1);
+		usleep_range(1000, 2000);
 	}
 
 	return err;
@@ -591,7 +591,7 @@ void LPS_Leave_check(struct adapter *padapter)
 		if (jiffies_to_msecs(jiffies - start_time) > 100)
 			break;
 
-		msleep(1);
+		usleep_range(1000, 2000);
 	}
 }
 
-- 
2.34.1


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

end of thread, other threads:[~2024-10-16 12:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-16 11:12 [PATCH] drivers: staging: rtl8723bs: Replace msleep() with usleep_range() Aymen Khalfa
2024-10-16 11:13 ` Hans de Goede
2024-10-16 12:29 ` Greg KH
2024-10-16 12:30 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox