rtl8188eu: Convert typedef for _sema and _pwrlock to struct semaphore

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2013-07-24 14:17:51 -05:00
parent 73f9c27ffd
commit 5f133c3764
10 changed files with 23 additions and 30 deletions

View file

@ -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;