staging: wilc1000: rename pHandle in wilc_mq_send
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 21 Jan 2016 11:30:44 +0000 (20:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:21:18 +0000 (15:21 -0800)
This patch renames pHandle to mq to avoid camelcase.

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

index a01420a9a729dbaf0362737286500e93de9e8650..71ce1f585c3c982e16f7af94576d92ce8a587304 100644 (file)
@@ -53,19 +53,19 @@ int wilc_mq_destroy(struct message_queue *mq)
  *  @note              copied from FLO glue implementatuion
  *  @version           1.0
  */
-int wilc_mq_send(struct message_queue *pHandle,
+int wilc_mq_send(struct message_queue *mq,
                 const void *pvSendBuffer, u32 u32SendBufferSize)
 {
        unsigned long flags;
        struct message *pstrMessage = NULL;
 
-       if ((!pHandle) || (u32SendBufferSize == 0) || (!pvSendBuffer)) {
-               PRINT_ER("pHandle or pvSendBuffer is null\n");
+       if ((!mq) || (u32SendBufferSize == 0) || (!pvSendBuffer)) {
+               PRINT_ER("mq or pvSendBuffer is null\n");
                return -EFAULT;
        }
 
-       if (pHandle->exiting) {
-               PRINT_ER("pHandle fail\n");
+       if (mq->exiting) {
+               PRINT_ER("mq fail\n");
                return -EFAULT;
        }
 
@@ -83,13 +83,13 @@ int wilc_mq_send(struct message_queue *pHandle,
                return -ENOMEM;
        }
 
-       spin_lock_irqsave(&pHandle->lock, flags);
+       spin_lock_irqsave(&mq->lock, flags);
 
        /* add it to the message queue */
-       if (!pHandle->msg_list) {
-               pHandle->msg_list  = pstrMessage;
+       if (!mq->msg_list) {
+               mq->msg_list  = pstrMessage;
        } else {
-               struct message *pstrTailMsg = pHandle->msg_list;
+               struct message *pstrTailMsg = mq->msg_list;
 
                while (pstrTailMsg->next)
                        pstrTailMsg = pstrTailMsg->next;
@@ -97,9 +97,9 @@ int wilc_mq_send(struct message_queue *pHandle,
                pstrTailMsg->next = pstrMessage;
        }
 
-       spin_unlock_irqrestore(&pHandle->lock, flags);
+       spin_unlock_irqrestore(&mq->lock, flags);
 
-       up(&pHandle->sem);
+       up(&mq->sem);
 
        return 0;
 }
index b91822e95ee9b2d39ca7fd22f300bc8286308e1e..e6cdc10fb1dabf02d7feaeaa808a07ece6c8e4e0 100644 (file)
@@ -57,7 +57,7 @@ int wilc_mq_create(struct message_queue *mq);
  *  @date              30 Aug 2010
  *  @version           1.0
  */
-int wilc_mq_send(struct message_queue *pHandle,
+int wilc_mq_send(struct message_queue *mq,
                 const void *pvSendBuffer, u32 u32SendBufferSize);
 
 /*!