staging: wilc1000: rename pstrMessageList in struct message_queue
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 21 Jan 2016 11:30:40 +0000 (20:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:21:18 +0000 (15:21 -0800)
This patch renames pstrMessageList to msg_list 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 363e00389d228c4c0b840f7ac7723564c03ea9e2..d13c9a76ab92a18489a4b7b1c294d6d46f752952 100644 (file)
@@ -15,7 +15,7 @@ int wilc_mq_create(struct message_queue *pHandle)
 {
        spin_lock_init(&pHandle->lock);
        sema_init(&pHandle->sem, 0);
-       pHandle->pstrMessageList = NULL;
+       pHandle->msg_list = NULL;
        pHandle->recv_count = 0;
        pHandle->exiting = false;
        return 0;
@@ -37,11 +37,11 @@ int wilc_mq_destroy(struct message_queue *pHandle)
                pHandle->recv_count--;
        }
 
-       while (pHandle->pstrMessageList) {
-               struct message *pstrMessge = pHandle->pstrMessageList->next;
+       while (pHandle->msg_list) {
+               struct message *pstrMessge = pHandle->msg_list->next;
 
-               kfree(pHandle->pstrMessageList);
-               pHandle->pstrMessageList = pstrMessge;
+               kfree(pHandle->msg_list);
+               pHandle->msg_list = pstrMessge;
        }
 
        return 0;
@@ -86,10 +86,10 @@ int wilc_mq_send(struct message_queue *pHandle,
        spin_lock_irqsave(&pHandle->lock, flags);
 
        /* add it to the message queue */
-       if (!pHandle->pstrMessageList) {
-               pHandle->pstrMessageList  = pstrMessage;
+       if (!pHandle->msg_list) {
+               pHandle->msg_list  = pstrMessage;
        } else {
-               struct message *pstrTailMsg = pHandle->pstrMessageList;
+               struct message *pstrTailMsg = pHandle->msg_list;
 
                while (pstrTailMsg->next)
                        pstrTailMsg = pstrTailMsg->next;
@@ -135,7 +135,7 @@ int wilc_mq_recv(struct message_queue *pHandle,
        down(&pHandle->sem);
        spin_lock_irqsave(&pHandle->lock, flags);
 
-       pstrMessage = pHandle->pstrMessageList;
+       pstrMessage = pHandle->msg_list;
        if (!pstrMessage) {
                spin_unlock_irqrestore(&pHandle->lock, flags);
                PRINT_ER("pstrMessage is null\n");
@@ -154,7 +154,7 @@ int wilc_mq_recv(struct message_queue *pHandle,
        memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->len);
        *pu32ReceivedLength = pstrMessage->len;
 
-       pHandle->pstrMessageList = pstrMessage->next;
+       pHandle->msg_list = pstrMessage->next;
 
        kfree(pstrMessage->buf);
        kfree(pstrMessage);
index dcf54ea4a874a1dca20f997d6e900fb1f8e308f1..7e7ec06b132e1a7de097f95f351c1abb2f4d569b 100644 (file)
@@ -24,7 +24,7 @@ struct message_queue {
        spinlock_t lock;
        bool exiting;
        u32 recv_count;
-       struct message *pstrMessageList;
+       struct message *msg_list;
 };
 
 /*!