Remove wrapper rtw_udelay_os()

This wrapper is a simple call to udelay(). Remove it.

Link: https://lore.kernel.org/r/20210805192644.15978-4-Larry.Finger@lwfinger.net
This commit is contained in:
Larry Finger
2021-08-05 14:26:42 -05:00
committed by Carlos Garcés
parent 7f8451a86e
commit a5adfa895b
14 changed files with 37 additions and 94 deletions

View File

@@ -22,7 +22,7 @@ void up_clk(_adapter *padapter, u16 *x)
{
*x = *x | _EESK;
rtw_write8(padapter, EE_9346CR, (u8)*x);
rtw_udelay_os(CLOCK_RATE);
udelay(CLOCK_RATE);
}
@@ -31,7 +31,7 @@ void down_clk(_adapter *padapter, u16 *x)
{
*x = *x & ~_EESK;
rtw_write8(padapter, EE_9346CR, (u8)*x);
rtw_udelay_os(CLOCK_RATE);
udelay(CLOCK_RATE);
}
void shift_out_bits(_adapter *padapter, u16 data, u16 count)
@@ -54,7 +54,7 @@ void shift_out_bits(_adapter *padapter, u16 data, u16 count)
goto out;
}
rtw_write8(padapter, EE_9346CR, (u8)x);
rtw_udelay_os(CLOCK_RATE);
udelay(CLOCK_RATE);
up_clk(padapter, &x);
down_clk(padapter, &x);
mask = mask >> 1;
@@ -106,10 +106,10 @@ void standby(_adapter *padapter)
x &= ~(_EECS | _EESK);
rtw_write8(padapter, EE_9346CR, x);
rtw_udelay_os(CLOCK_RATE);
udelay(CLOCK_RATE);
x |= _EECS;
rtw_write8(padapter, EE_9346CR, x);
rtw_udelay_os(CLOCK_RATE);
udelay(CLOCK_RATE);
}
u16 wait_eeprom_cmd_done(_adapter *padapter)
@@ -123,7 +123,7 @@ u16 wait_eeprom_cmd_done(_adapter *padapter)
res = _TRUE;
goto exit;
}
rtw_udelay_os(CLOCK_RATE);
udelay(CLOCK_RATE);
}
exit:
return res;