diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-06-01 21:06:43 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-02 13:46:05 +0900 |
commit | 83383ea33c63a622619acf2b979037ee775500dd (patch) | |
tree | d21687c04b6a6403cfd89553ce0db6c5fef1cf4f /drivers/staging/wilc1000/host_interface.h | |
parent | e14af67d8fb20128927b65d824b389698dd5c663 (diff) | |
download | op-kernel-dev-83383ea33c63a622619acf2b979037ee775500dd.zip op-kernel-dev-83383ea33c63a622619acf2b979037ee775500dd.tar.gz |
staging: wilc1000: remove semaphore wrapper
The various semaphore functions all directly translate into
sema_init(), down() and up(), so we can just remove the API.
This is a mostly automated conversion using simple sed scripts,
plus some manual changes to account for down() returning no
error.
As a positive side-effect, down() no longer hangs after
receiving a signal, as the original code did by looping around
down_interruptible.
The semaphores still need to be turned into mutexes as a
follow-up step.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/host_interface.h')
-rw-r--r-- | drivers/staging/wilc1000/host_interface.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h index f2a3485..9c06db1 100644 --- a/drivers/staging/wilc1000/host_interface.h +++ b/drivers/staging/wilc1000/host_interface.h @@ -422,14 +422,14 @@ typedef struct { WILC_Uint8 au8AssociatedBSSID[ETH_ALEN]; tstrCfgParamVal strCfgValues; /* semaphores */ - WILC_SemaphoreHandle gtOsCfgValuesSem; - WILC_SemaphoreHandle hSemTestKeyBlock; - - WILC_SemaphoreHandle hSemTestDisconnectBlock; - WILC_SemaphoreHandle hSemGetRSSI; - WILC_SemaphoreHandle hSemGetLINKSPEED; - WILC_SemaphoreHandle hSemGetCHNL; - WILC_SemaphoreHandle hSemInactiveTime; + struct semaphore gtOsCfgValuesSem; + struct semaphore hSemTestKeyBlock; + + struct semaphore hSemTestDisconnectBlock; + struct semaphore hSemGetRSSI; + struct semaphore hSemGetLINKSPEED; + struct semaphore hSemGetCHNL; + struct semaphore hSemInactiveTime; /* timer handlers */ WILC_TimerHandle hScanTimer; WILC_TimerHandle hConnectTimer; |