]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: wilc1000: rename struct WILC_MsgQueueHandle
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 21 Jan 2016 11:30:35 +0000 (20:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:21:18 +0000 (15:21 -0800)
This patch removes typedef from struct WILC_MsgQueueHandle and renames
it to struct message_queue.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/wilc_msgqueue.c
drivers/staging/wilc1000/wilc_msgqueue.h

index 5801d41ef988c2a373587a1cf73ac7e7f6e48531..79e8b7aa482b6827d74b02727ea39e3698dd60c5 100644 (file)
@@ -229,7 +229,7 @@ static struct host_if_drv *terminated_handle;
 bool wilc_optaining_ip;
 static u8 P2P_LISTEN_STATE;
 static struct task_struct *hif_thread_handler;
-static WILC_MsgQueueHandle hif_msg_q;
+static struct message_queue hif_msg_q;
 static struct semaphore hif_sema_thread;
 static struct semaphore hif_sema_driver;
 static struct semaphore hif_sema_wait_response;
index 4d79a315662da7ff2dd683dda61b8cfa6015c38b..907bae19f494076e2b606b0dbcecd2b03bf58292 100644 (file)
@@ -11,7 +11,7 @@
  *  @note              copied from FLO glue implementatuion
  *  @version           1.0
  */
-int wilc_mq_create(WILC_MsgQueueHandle *pHandle)
+int wilc_mq_create(struct message_queue *pHandle)
 {
        spin_lock_init(&pHandle->strCriticalSection);
        sema_init(&pHandle->hSem, 0);
@@ -27,7 +27,7 @@ int wilc_mq_create(WILC_MsgQueueHandle *pHandle)
  *  @note              copied from FLO glue implementatuion
  *  @version           1.0
  */
-int wilc_mq_destroy(WILC_MsgQueueHandle *pHandle)
+int wilc_mq_destroy(struct message_queue *pHandle)
 {
        pHandle->bExiting = true;
 
@@ -53,8 +53,8 @@ int wilc_mq_destroy(WILC_MsgQueueHandle *pHandle)
  *  @note              copied from FLO glue implementatuion
  *  @version           1.0
  */
-int wilc_mq_send(WILC_MsgQueueHandle *pHandle,
-                            const void *pvSendBuffer, u32 u32SendBufferSize)
+int wilc_mq_send(struct message_queue *pHandle,
+                const void *pvSendBuffer, u32 u32SendBufferSize)
 {
        unsigned long flags;
        struct message *pstrMessage = NULL;
@@ -110,9 +110,9 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle,
  *  @note              copied from FLO glue implementatuion
  *  @version           1.0
  */
-int wilc_mq_recv(WILC_MsgQueueHandle *pHandle,
-                            void *pvRecvBuffer, u32 u32RecvBufferSize,
-                            u32 *pu32ReceivedLength)
+int wilc_mq_recv(struct message_queue *pHandle,
+                void *pvRecvBuffer, u32 u32RecvBufferSize,
+                u32 *pu32ReceivedLength)
 {
        struct message *pstrMessage;
        unsigned long flags;
index ec503c356ee387248b03bb630f675b841a213218..111be463d335a4960d14c63f8075efe6caf64990 100644 (file)
@@ -19,13 +19,13 @@ struct message {
        struct message *next;
 };
 
-typedef struct __MessageQueue_struct {
+struct message_queue {
        struct semaphore hSem;
        spinlock_t strCriticalSection;
        bool bExiting;
        u32 u32ReceiversCount;
        struct message *pstrMessageList;
-} WILC_MsgQueueHandle;
+};
 
 /*!
  *  @brief             Creates a new Message queue
@@ -40,7 +40,7 @@ typedef struct __MessageQueue_struct {
  *  @date              30 Aug 2010
  *  @version           1.0
  */
-int wilc_mq_create(WILC_MsgQueueHandle *pHandle);
+int wilc_mq_create(struct message_queue *pHandle);
 
 /*!
  *  @brief             Sends a message
@@ -57,8 +57,8 @@ int wilc_mq_create(WILC_MsgQueueHandle *pHandle);
  *  @date              30 Aug 2010
  *  @version           1.0
  */
-int wilc_mq_send(WILC_MsgQueueHandle *pHandle,
-                            const void *pvSendBuffer, u32 u32SendBufferSize);
+int wilc_mq_send(struct message_queue *pHandle,
+                const void *pvSendBuffer, u32 u32SendBufferSize);
 
 /*!
  *  @brief             Receives a message
@@ -76,9 +76,9 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle,
  *  @date              30 Aug 2010
  *  @version           1.0
  */
-int wilc_mq_recv(WILC_MsgQueueHandle *pHandle,
-                            void *pvRecvBuffer, u32 u32RecvBufferSize,
-                            u32 *pu32ReceivedLength);
+int wilc_mq_recv(struct message_queue *pHandle,
+                void *pvRecvBuffer, u32 u32RecvBufferSize,
+                u32 *pu32ReceivedLength);
 
 /*!
  *  @brief             Destroys an existing  Message queue
@@ -89,6 +89,6 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle,
  *  @date              30 Aug 2010
  *  @version           1.0
  */
-int wilc_mq_destroy(WILC_MsgQueueHandle *pHandle);
+int wilc_mq_destroy(struct message_queue *pHandle);
 
 #endif