staging: wilc1000: rename pvRecvBuffer in wilc_mq_recv
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 21 Jan 2016 11:30:51 +0000 (20:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:21:18 +0000 (15:21 -0800)
This patch renames pvRecvBuffer to recv_buf 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 d2df1795facb66eab3e418c64a3683a15ee4bf0e..b836b2eac5cc29cd11f347ee1d5a0ddfb7d0d346 100644 (file)
@@ -110,15 +110,15 @@ int wilc_mq_send(struct message_queue *mq,
  *  @version           1.0
  */
 int wilc_mq_recv(struct message_queue *mq,
-                void *pvRecvBuffer, u32 u32RecvBufferSize,
+                void *recv_buf, u32 u32RecvBufferSize,
                 u32 *pu32ReceivedLength)
 {
        struct message *pstrMessage;
        unsigned long flags;
 
        if ((!mq) || (u32RecvBufferSize == 0)
-           || (!pvRecvBuffer) || (!pu32ReceivedLength)) {
-               PRINT_ER("mq or pvRecvBuffer is null\n");
+           || (!recv_buf) || (!pu32ReceivedLength)) {
+               PRINT_ER("mq or recv_buf is null\n");
                return -EINVAL;
        }
 
@@ -150,7 +150,7 @@ int wilc_mq_recv(struct message_queue *mq,
 
        /* consume the message */
        mq->recv_count--;
-       memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->len);
+       memcpy(recv_buf, pstrMessage->buf, pstrMessage->len);
        *pu32ReceivedLength = pstrMessage->len;
 
        mq->msg_list = pstrMessage->next;
index 0c1eead47b42e811a9661d2d8c3dd682cffdda52..81b51dd88e6b4f791472d7c07e743ebb39183a8b 100644 (file)
@@ -77,7 +77,7 @@ int wilc_mq_send(struct message_queue *mq,
  *  @version           1.0
  */
 int wilc_mq_recv(struct message_queue *mq,
-                void *pvRecvBuffer, u32 u32RecvBufferSize,
+                void *recv_buf, u32 u32RecvBufferSize,
                 u32 *pu32ReceivedLength);
 
 /*!