mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Convert typedef for _sema and _pwrlock to struct semaphore
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
73f9c27ffd
commit
5f133c3764
10 changed files with 23 additions and 30 deletions
|
@ -177,21 +177,21 @@ void rtw_list_insert_tail(_list *plist, _list *phead)
|
|||
Caller must check if the list is empty before calling rtw_list_delete
|
||||
*/
|
||||
|
||||
void _rtw_init_sema(_sema *sema, int init_val)
|
||||
void _rtw_init_sema(struct semaphore *sema, int init_val)
|
||||
{
|
||||
sema_init(sema, init_val);
|
||||
}
|
||||
|
||||
void _rtw_free_sema(_sema *sema)
|
||||
void _rtw_free_sema(struct semaphore *sema)
|
||||
{
|
||||
}
|
||||
|
||||
void _rtw_up_sema(_sema *sema)
|
||||
void _rtw_up_sema(struct semaphore *sema)
|
||||
{
|
||||
up(sema);
|
||||
}
|
||||
|
||||
u32 _rtw_down_sema(_sema *sema)
|
||||
u32 _rtw_down_sema(struct semaphore *sema)
|
||||
{
|
||||
if (down_interruptible(sema))
|
||||
return _FAIL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue