Hi, On 16-Oct-24 1:12 PM, Aymen Khalfa wrote: > -Fix checkpatch.pl warning by replacing msleep() with usleep_range() as > recommended in the documentation. > > Signed-off-by: Aymen Khalfa <a.khalfa.1012@xxxxxxxxx> Thanks, patch looks good to me: Reviewed-by: Hans de Goede <hdegoede@xxxxxxxxxx> Regards, Hans > --- > 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); > } > } >