]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
staging: wilc1000: rename u32ReceiversCount in struct message_queue
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 21 Jan 2016 11:30:39 +0000 (20:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:21:18 +0000 (15:21 -0800)
This patch renames u32ReceiversCount to recv_count 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 47ba2564d93119c7561f9339855234ba71dae981..363e00389d228c4c0b840f7ac7723564c03ea9e2 100644 (file)
@@ -16,7 +16,7 @@ int wilc_mq_create(struct message_queue *pHandle)
        spin_lock_init(&pHandle->lock);
        sema_init(&pHandle->sem, 0);
        pHandle->pstrMessageList = NULL;
-       pHandle->u32ReceiversCount = 0;
+       pHandle->recv_count = 0;
        pHandle->exiting = false;
        return 0;
 }
@@ -32,9 +32,9 @@ int wilc_mq_destroy(struct message_queue *pHandle)
        pHandle->exiting = true;
 
        /* Release any waiting receiver thread. */
-       while (pHandle->u32ReceiversCount > 0) {
+       while (pHandle->recv_count > 0) {
                up(&pHandle->sem);
-               pHandle->u32ReceiversCount--;
+               pHandle->recv_count--;
        }
 
        while (pHandle->pstrMessageList) {
@@ -129,7 +129,7 @@ int wilc_mq_recv(struct message_queue *pHandle,
        }
 
        spin_lock_irqsave(&pHandle->lock, flags);
-       pHandle->u32ReceiversCount++;
+       pHandle->recv_count++;
        spin_unlock_irqrestore(&pHandle->lock, flags);
 
        down(&pHandle->sem);
@@ -150,7 +150,7 @@ int wilc_mq_recv(struct message_queue *pHandle,
        }
 
        /* consume the message */
-       pHandle->u32ReceiversCount--;
+       pHandle->recv_count--;
        memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->len);
        *pu32ReceivedLength = pstrMessage->len;
 
index 2c21b3e5cd3f5e6c6b2fe1c210015674d0c323f1..dcf54ea4a874a1dca20f997d6e900fb1f8e308f1 100644 (file)
@@ -23,7 +23,7 @@ struct message_queue {
        struct semaphore sem;
        spinlock_t lock;
        bool exiting;
-       u32 u32ReceiversCount;
+       u32 recv_count;
        struct message *pstrMessageList;
 };