summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaehyun Lim <chaehyun.lim@gmail.com>2016-01-21 20:30:52 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-03 15:21:18 -0800
commite8f2d1f19c6b18f2dbf2661311f4456850450a5f (patch)
tree89d7f3b0138febbb661815a66cb5c85a03625176
parentf034b01ea6236442c391c7d22623cd440d778de1 (diff)
staging: wilc1000: rename u32RecvBufferSize in wilc_mq_recv
This patch renames u32RecvBufferSize to recv_buf_size to avoid camelcase. Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/wilc1000/wilc_msgqueue.c8
-rw-r--r--drivers/staging/wilc1000/wilc_msgqueue.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/wilc1000/wilc_msgqueue.c b/drivers/staging/wilc1000/wilc_msgqueue.c
index b836b2eac5cc..c86bd7c6b72d 100644
--- a/drivers/staging/wilc1000/wilc_msgqueue.c
+++ b/drivers/staging/wilc1000/wilc_msgqueue.c
@@ -110,13 +110,13 @@ int wilc_mq_send(struct message_queue *mq,
* @version 1.0
*/
int wilc_mq_recv(struct message_queue *mq,
- void *recv_buf, u32 u32RecvBufferSize,
+ void *recv_buf, u32 recv_buf_size,
u32 *pu32ReceivedLength)
{
struct message *pstrMessage;
unsigned long flags;
- if ((!mq) || (u32RecvBufferSize == 0)
+ if ((!mq) || (recv_buf_size == 0)
|| (!recv_buf) || (!pu32ReceivedLength)) {
PRINT_ER("mq or recv_buf is null\n");
return -EINVAL;
@@ -141,10 +141,10 @@ int wilc_mq_recv(struct message_queue *mq,
return -EFAULT;
}
/* check buffer size */
- if (u32RecvBufferSize < pstrMessage->len) {
+ if (recv_buf_size < pstrMessage->len) {
spin_unlock_irqrestore(&mq->lock, flags);
up(&mq->sem);
- PRINT_ER("u32RecvBufferSize overflow\n");
+ PRINT_ER("recv_buf_size overflow\n");
return -EOVERFLOW;
}
diff --git a/drivers/staging/wilc1000/wilc_msgqueue.h b/drivers/staging/wilc1000/wilc_msgqueue.h
index 81b51dd88e6b..3804b3bf4f01 100644
--- a/drivers/staging/wilc1000/wilc_msgqueue.h
+++ b/drivers/staging/wilc1000/wilc_msgqueue.h
@@ -77,7 +77,7 @@ int wilc_mq_send(struct message_queue *mq,
* @version 1.0
*/
int wilc_mq_recv(struct message_queue *mq,
- void *recv_buf, u32 u32RecvBufferSize,
+ void *recv_buf, u32 recv_buf_size,
u32 *pu32ReceivedLength);
/*!