openwrt/staging/blogic.git
8 years agostaging: wilc1000: remove over-commenting
Chaehyun Lim [Thu, 21 Jan 2016 11:30:57 +0000 (20:30 +0900)]
staging: wilc1000: remove over-commenting

There are over-commenting in wilc_msgqueue.h file. This comment is not
explain exactly what codes do and make checkpatch warning about "line
over 80 charcters". If necessary, comment will be added later with
preferred coding style.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix logical continuations
Chaehyun Lim [Thu, 21 Jan 2016 11:30:56 +0000 (20:30 +0900)]
staging: wilc1000: fix logical continuations

This patch fixes logical continuations found by checkpatch
CHECK: Logical continuations should be on the previous line

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix coding style of kmalloc usage
Chaehyun Lim [Thu, 21 Jan 2016 11:30:55 +0000 (20:30 +0900)]
staging: wilc1000: fix coding style of kmalloc usage

This patch fixes coding style of kmalloc usage found by checkpatch.
CHECK: Prefer kmalloc(sizeof(*new_msg)...) over kmalloc(sizeof(struct message)...)

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pstrMessage in wilc_mq_recv
Chaehyun Lim [Thu, 21 Jan 2016 11:30:54 +0000 (20:30 +0900)]
staging: wilc1000: rename pstrMessage in wilc_mq_recv

This patch renames pstrMessage to msg to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pu32ReceivedLength in wilc_mq_recv
Chaehyun Lim [Thu, 21 Jan 2016 11:30:53 +0000 (20:30 +0900)]
staging: wilc1000: rename pu32ReceivedLength in wilc_mq_recv

This patch renames pu32ReceivedLength to recv_len to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u32RecvBufferSize in wilc_mq_recv
Chaehyun Lim [Thu, 21 Jan 2016 11:30:52 +0000 (20:30 +0900)]
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>
8 years agostaging: wilc1000: rename pvRecvBuffer in wilc_mq_recv
Chaehyun Lim [Thu, 21 Jan 2016 11:30:51 +0000 (20:30 +0900)]
staging: wilc1000: rename pvRecvBuffer in wilc_mq_recv

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>
8 years agostaging: wilc1000: rename pHandle in wilc_mq_recv
Chaehyun Lim [Thu, 21 Jan 2016 11:30:50 +0000 (20:30 +0900)]
staging: wilc1000: rename pHandle in wilc_mq_recv

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>
8 years agostaging: wilc1000: fix return error code
Chaehyun Lim [Thu, 21 Jan 2016 11:30:49 +0000 (20:30 +0900)]
staging: wilc1000: fix return error code

Three argument are checked at the beginning of wilc_mq_send whether
they are valid arguments or not. It is correct to use return error code
as -EINVAL, not -EFAULT.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pstrTailMsg in wilc_mq_send
Chaehyun Lim [Thu, 21 Jan 2016 11:30:48 +0000 (20:30 +0900)]
staging: wilc1000: rename pstrTailMsg in wilc_mq_send

This patch renames pstrTailMsg to tail_msg to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pstrMessage in wilc_mq_send
Chaehyun Lim [Thu, 21 Jan 2016 11:30:47 +0000 (20:30 +0900)]
staging: wilc1000: rename pstrMessage in wilc_mq_send

This patch renames pstrMessage to new_msg to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u32SendBufferSize in wilc_mq_send
Chaehyun Lim [Thu, 21 Jan 2016 11:30:46 +0000 (20:30 +0900)]
staging: wilc1000: rename u32SendBufferSize in wilc_mq_send

This patch renames u32SendBufferSize to send_buf_size to avoid
camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pvSendBuffer in wilc_mq_send
Chaehyun Lim [Thu, 21 Jan 2016 11:30:45 +0000 (20:30 +0900)]
staging: wilc1000: rename pvSendBuffer in wilc_mq_send

This patch renames pvSendBuffer to send_buf to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pHandle in wilc_mq_send
Chaehyun Lim [Thu, 21 Jan 2016 11:30:44 +0000 (20:30 +0900)]
staging: wilc1000: rename pHandle in wilc_mq_send

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>
8 years agostaging: wilc1000: rename pstrMessge in wilc_mq_destroy
Chaehyun Lim [Thu, 21 Jan 2016 11:30:43 +0000 (20:30 +0900)]
staging: wilc1000: rename pstrMessge in wilc_mq_destroy

This patch renames pstrMessge to msg to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pHandle in wilc_mq_destroy
Chaehyun Lim [Thu, 21 Jan 2016 11:30:42 +0000 (20:30 +0900)]
staging: wilc1000: rename pHandle in wilc_mq_destroy

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>
8 years agostaging: wilc1000: rename pHandle in wilc_mq_create
Chaehyun Lim [Thu, 21 Jan 2016 11:30:41 +0000 (20:30 +0900)]
staging: wilc1000: rename pHandle in wilc_mq_create

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>
8 years agostaging: wilc1000: rename pstrMessageList in struct message_queue
Chaehyun Lim [Thu, 21 Jan 2016 11:30:40 +0000 (20:30 +0900)]
staging: wilc1000: rename pstrMessageList in struct message_queue

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>
8 years agostaging: wilc1000: rename u32ReceiversCount in struct message_queue
Chaehyun Lim [Thu, 21 Jan 2016 11:30:39 +0000 (20:30 +0900)]
staging: wilc1000: rename u32ReceiversCount in struct message_queue

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>
8 years agostaging: wilc1000: rename bExiting in struct message_queue
Chaehyun Lim [Thu, 21 Jan 2016 11:30:38 +0000 (20:30 +0900)]
staging: wilc1000: rename bExiting in struct message_queue

This patch renames bExiting to exiting to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename strCriticalSection in struct message_queue
Chaehyun Lim [Thu, 21 Jan 2016 11:30:37 +0000 (20:30 +0900)]
staging: wilc1000: rename strCriticalSection in struct message_queue

This patch renames strCriticalSection to lock to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename hSem in struct message_queue
Chaehyun Lim [Thu, 21 Jan 2016 11:30:36 +0000 (20:30 +0900)]
staging: wilc1000: rename hSem in struct message_queue

This patch renames hSem to sem to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename struct WILC_MsgQueueHandle
Chaehyun Lim [Thu, 21 Jan 2016 11:30:35 +0000 (20:30 +0900)]
staging: wilc1000: rename struct WILC_MsgQueueHandle

This patch removes typedef from struct WILC_MsgQueueHandle and renames
it to struct message_queue.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pstrNext in struct message
Chaehyun Lim [Thu, 21 Jan 2016 11:30:34 +0000 (20:30 +0900)]
staging: wilc1000: rename pstrNext in struct message

This patch renames pstrNext to next to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u32Length in struct message
Chaehyun Lim [Thu, 21 Jan 2016 11:30:33 +0000 (20:30 +0900)]
staging: wilc1000: rename u32Length in struct message

This patch renames u32Length to len to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pvBuffer in struct message
Chaehyun Lim [Thu, 21 Jan 2016 11:30:32 +0000 (20:30 +0900)]
staging: wilc1000: rename pvBuffer in struct message

This patch renames pvBuffer to buf to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename struct __Message_struct
Chaehyun Lim [Thu, 21 Jan 2016 11:30:31 +0000 (20:30 +0900)]
staging: wilc1000: rename struct __Message_struct

This patch renames typedef from struct __Message_struct and renames it
to struct message.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: remove redundant check in wilc_mq_recv
Chaehyun Lim [Wed, 20 Jan 2016 07:44:57 +0000 (16:44 +0900)]
staging: wilc1000: remove redundant check in wilc_mq_recv

At the beginning of wilc_mq_recv, it is checked if pHandle->bExiting is
false or true. There is no need to check it again at the middle of this
function. So just remove it.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: remove extraneous variable
Arnd Bergmann [Wed, 13 Jan 2016 14:36:17 +0000 (15:36 +0100)]
staging: wilc1000: remove extraneous variable

Building wilc1000 with clang currently fails in the staging-next branch:

drivers/staging/wilc1000/wilc_spi.c:123:34: warning: tentative definition of variable with internal linkage has incomplete non-array type 'const struct wilc1000_ops' [-Wtentative-definition-incomplete-type]
static const struct wilc1000_ops wilc1000_spi_ops;

The reason is that wilc1000_ops was left behind after a recent cleanup,
and is completely unused and also uninitialized and const and has an
incomplete type.

Removing the variable is obviously correct, and gets rid of the warning.
No idea why gcc does not complain about it though.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix return type of wilc_init
Chaehyun Lim [Tue, 5 Jan 2016 14:06:57 +0000 (23:06 +0900)]
staging: wilc1000: fix return type of wilc_init

This patch changes return type of wilc_init from s32 to int.
The error code as -ENOMEM or -EFAULT is returned in the wilc_init.
It is better to use return type of int in this function, not s32.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename phWFIDrv in wilc_init declaration
Chaehyun Lim [Tue, 5 Jan 2016 14:06:56 +0000 (23:06 +0900)]
staging: wilc1000: rename phWFIDrv in wilc_init declaration

The second argument name is different between wilc_init declaration and
definition. This patch renames phWFIDrv to hif_drv_handler to match
argument name.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: use kmemdup instead of kmalloc/memcpy
Chaehyun Lim [Tue, 5 Jan 2016 14:06:55 +0000 (23:06 +0900)]
staging: wilc1000: use kmemdup instead of kmalloc/memcpy

This patch replaces kmalloc followed by memcpy with kmemdup.
It is also added error checking to return -ENOMEM when kmemdup is
failed.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pstrHiddenNetwork in wilc_scan
Chaehyun Lim [Tue, 5 Jan 2016 14:06:54 +0000 (23:06 +0900)]
staging: wilc1000: rename pstrHiddenNetwork in wilc_scan

This patch renames pstrHiddenNetwork to hidden_network to avoid
camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pvUserArg in wilc_scan
Chaehyun Lim [Tue, 5 Jan 2016 14:06:53 +0000 (23:06 +0900)]
staging: wilc1000: rename pvUserArg in wilc_scan

This patch renames pvUserArg to user_arg to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename ScanResult in wilc_scan
Chaehyun Lim [Tue, 5 Jan 2016 14:06:52 +0000 (23:06 +0900)]
staging: wilc1000: rename ScanResult in wilc_scan

This patch renames ScanResult to scan_result to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename IEsLen in wilc_scan
Chaehyun Lim [Tue, 5 Jan 2016 14:06:51 +0000 (23:06 +0900)]
staging: wilc1000: rename IEsLen in wilc_scan

This patch renames IEsLen to ies_len to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pu8IEs in wilc_scan
Chaehyun Lim [Tue, 5 Jan 2016 14:06:50 +0000 (23:06 +0900)]
staging: wilc1000: rename pu8IEs in wilc_scan

This patch renames pu8IEs to ies to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u8ChnlListLen in wilc_scan
Chaehyun Lim [Tue, 5 Jan 2016 14:06:49 +0000 (23:06 +0900)]
staging: wilc1000: rename u8ChnlListLen in wilc_scan

This patch renames u8ChnlListLen to ch_list_len to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pu8ChnlFreqList in wilc_scan
Chaehyun Lim [Tue, 5 Jan 2016 14:06:48 +0000 (23:06 +0900)]
staging: wilc1000: rename pu8ChnlFreqList in wilc_scan

This patch renames pu8ChnlFreqList to ch_freq_list to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u8ScanType in wilc_scan
Chaehyun Lim [Tue, 5 Jan 2016 14:06:47 +0000 (23:06 +0900)]
staging: wilc1000: rename u8ScanType in wilc_scan

This patch renames u8ScanType to scan_type to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u8ScanSource in wilc_scan
Chaehyun Lim [Tue, 5 Jan 2016 14:06:46 +0000 (23:06 +0900)]
staging: wilc1000: rename u8ScanSource in wilc_scan

This patch renames u8ScanSource to scan_source to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix return type of wilc_scan
Chaehyun Lim [Tue, 5 Jan 2016 14:06:45 +0000 (23:06 +0900)]
staging: wilc1000: fix return type of wilc_scan

This patch changes return type of wilc_scan from s32 to int.
The result variable gets return value from wilc_mq_send that has data
type of int. It should be changed return type of this function as well
as data type of result variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u8ssidnum in struct hidden_network
Chaehyun Lim [Tue, 5 Jan 2016 04:26:33 +0000 (13:26 +0900)]
staging: wilc1000: rename u8ssidnum in struct hidden_network

This patch renames u8ssidnum to n_ssids that is a member of struct
hidden_network. There is no need to use u8 prefix to show data type so
just rename it.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pstrHiddenNetworkInfo in struct hidden_network
Chaehyun Lim [Tue, 5 Jan 2016 04:26:32 +0000 (13:26 +0900)]
staging: wilc1000: rename pstrHiddenNetworkInfo in struct hidden_network

This patch renames pstrHiddenNetworkInfo to net_info to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u8ssidlen in struct hidden_net_info
Chaehyun Lim [Tue, 5 Jan 2016 04:26:31 +0000 (13:26 +0900)]
staging: wilc1000: rename u8ssidlen in struct hidden_net_info

This patch renames u8ssidlen to ssid_len that is a member of
hidden_net_info. There is no need to use u8 prefix to show data type so
just rename it.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pu8ssid in struct hidden_net_info
Chaehyun Lim [Tue, 5 Jan 2016 04:26:30 +0000 (13:26 +0900)]
staging: wilc1000: rename pu8ssid in struct hidden_net_info

This patch renames pu8ssid to ssid that is a member of struct
hidden_net_info. There is no need to use pu8 prefix to show data type so
just remove it.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: make some variables static
Hugo Camboulive [Mon, 4 Jan 2016 22:02:23 +0000 (22:02 +0000)]
staging: wilc1000: make some variables static

terminated_handle is used only in host_interface.c
wilc1000_spi_driver is exported by module_spi_driver()

This fixes a few Sparse warnings.

Signed-off-by: Hugo Camboulive <hugo.camboulive@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: add missing __user attribute
Hugo Camboulive [Mon, 4 Jan 2016 20:33:50 +0000 (20:33 +0000)]
staging: wilc1000: add missing __user attribute

This removes a Sparse warning.

Signed-off-by: Hugo Camboulive <hugo.camboulive@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pstrSetBeaconParam in wilc_add_beacon
Chaehyun Lim [Sun, 3 Jan 2016 08:36:02 +0000 (17:36 +0900)]
staging: wilc1000: rename pstrSetBeaconParam in wilc_add_beacon

This patch renames pstrSetBeaconParam to beacon_info to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pu8Tail in wilc_add_beacon
Chaehyun Lim [Sun, 3 Jan 2016 08:36:01 +0000 (17:36 +0900)]
staging: wilc1000: rename pu8Tail in wilc_add_beacon

This patch renames pu8Tail to tail to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u32TailLen in wilc_add_beacon
Chaehyun Lim [Sun, 3 Jan 2016 08:36:00 +0000 (17:36 +0900)]
staging: wilc1000: rename u32TailLen in wilc_add_beacon

This patch renames u32TailLen to tail_len to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pu8Head in wilc_add_beacon
Chaehyun Lim [Sun, 3 Jan 2016 08:35:59 +0000 (17:35 +0900)]
staging: wilc1000: rename pu8Head in wilc_add_beacon

This patch renames pu8Head to head to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u32HeadLen in wilc_add_beacon
Chaehyun Lim [Sun, 3 Jan 2016 08:35:58 +0000 (17:35 +0900)]
staging: wilc1000: rename u32HeadLen in wilc_add_beacon

This patch renames u32HeadLen to head_len to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u32DTIMPeriod in wilc_add_beacon
Chaehyun Lim [Sun, 3 Jan 2016 08:35:57 +0000 (17:35 +0900)]
staging: wilc1000: rename u32DTIMPeriod in wilc_add_beacon

This patch renames u32DTIMPeriod to dtim_period to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u32Interval in wilc_add_beacon
Chaehyun Lim [Sun, 3 Jan 2016 08:35:56 +0000 (17:35 +0900)]
staging: wilc1000: rename u32Interval in wilc_add_beacon

This patch renames u32Interval to interval to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix return type of wilc_add_beacon
Chaehyun Lim [Sun, 3 Jan 2016 08:35:55 +0000 (17:35 +0900)]
staging: wilc1000: fix return type of wilc_add_beacon

This patch changes return type of wilc_add_beacon from s32 to int.
The result variable gets return value from wilc_mq_send that has data
type of int. It should be changed return type of this function as well
as result variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u8AssocNumb in wilc_del_allstation
Chaehyun Lim [Sun, 3 Jan 2016 08:35:54 +0000 (17:35 +0900)]
staging: wilc1000: rename u8AssocNumb in wilc_del_allstation

This patch renames u8AssocNumb to assoc_sta to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: use int instead of u32
Chaehyun Lim [Sun, 3 Jan 2016 08:35:53 +0000 (17:35 +0900)]
staging: wilc1000: use int instead of u32

The variable i is used as array index so that it is better to use data
type of int.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename au8Zero_Buff in wilc_del_allstation
Chaehyun Lim [Sun, 3 Jan 2016 08:35:52 +0000 (17:35 +0900)]
staging: wilc1000: rename au8Zero_Buff in wilc_del_allstation

This patch renames au8Zero_Buff to zero_addr to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pstrDelAllStationMsg in wilc_del_allstation
Chaehyun Lim [Sun, 3 Jan 2016 08:35:51 +0000 (17:35 +0900)]
staging: wilc1000: rename pstrDelAllStationMsg in wilc_del_allstation

This patch renames pstrDelAllStationMsg to del_all_sta_info to avoid
camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pu8MacAddr in wilc_del_allstation
Chaehyun Lim [Sun, 3 Jan 2016 08:35:50 +0000 (17:35 +0900)]
staging: wilc1000: rename pu8MacAddr in wilc_del_allstation

This patch renames pu8MacAddr to mac_addr to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix return type of wilc_del_allstation
Chaehyun Lim [Sun, 3 Jan 2016 08:35:49 +0000 (17:35 +0900)]
staging: wilc1000: fix return type of wilc_del_allstation

This patch changes return type of wilc_del_allstation from s32 to int.
The result variable gets return value from wilc_mq_send that has data
type of int. It should be changed return type of this function as well
as data type of result variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: remove rates variable in wilc_edit_station
Chaehyun Lim [Sun, 3 Jan 2016 08:35:48 +0000 (17:35 +0900)]
staging: wilc1000: remove rates variable in wilc_edit_station

Instead of using rates variable, it is used as add_sta_info->rates
directly.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: use kmemdup in wilc_edit_station
Chaehyun Lim [Sun, 3 Jan 2016 08:35:47 +0000 (17:35 +0900)]
staging: wilc1000: use kmemdup in wilc_edit_station

This patch replaces kmalloc followed by memcpy with kmemdup.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pstrAddStationMsg in wilc_edit_station
Chaehyun Lim [Sun, 3 Jan 2016 08:35:46 +0000 (17:35 +0900)]
staging: wilc1000: rename pstrAddStationMsg in wilc_edit_station

This patch renames pstrAddStationMsg to add_sta_info to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pstrStaParams in wilc_edit_station
Chaehyun Lim [Sun, 3 Jan 2016 08:35:45 +0000 (17:35 +0900)]
staging: wilc1000: rename pstrStaParams in wilc_edit_station

This patch renames pstrStaParams to sta_param to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix return type of wilc_edit_station
Chaehyun Lim [Sun, 3 Jan 2016 08:35:44 +0000 (17:35 +0900)]
staging: wilc1000: fix return type of wilc_edit_station

This patch changes return type of wilc_edit_station from s32 to int.
The result variable gets return value from wilc_mq_send that has data
type of int. It should be changed return type of this function as well
as data type of result variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pBASessionInfo in wilc_del_all_rx_ba_session
Chaehyun Lim [Sun, 3 Jan 2016 08:35:43 +0000 (17:35 +0900)]
staging: wilc1000: rename pBASessionInfo in wilc_del_all_rx_ba_session

This patch renames pBASessionInfo to ba_session_info to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename TID in wilc_del_all_rx_ba_session
Chaehyun Lim [Sun, 3 Jan 2016 08:35:42 +0000 (17:35 +0900)]
staging: wilc1000: rename TID in wilc_del_all_rx_ba_session

This patch renames TID to tid to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pBSSID in wilc_del_all_rx_ba_session
Chaehyun Lim [Sun, 3 Jan 2016 08:35:41 +0000 (17:35 +0900)]
staging: wilc1000: rename pBSSID in wilc_del_all_rx_ba_session

This patch renames pBSSID to bssid to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix return type of wilc_del_all_rx_ba_session
Chaehyun Lim [Sun, 3 Jan 2016 08:35:40 +0000 (17:35 +0900)]
staging: wilc1000: fix return type of wilc_del_all_rx_ba_session

This patch changes return type of wilc_del_all_rx_ba_session from s32 to
int. The result variable gets return value from wilc_mq_send that has
return type of int. It should be changed return type of this function as
well as data type of result variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pvUserArg in wilc_remain_on_channel
Chaehyun Lim [Sun, 3 Jan 2016 08:35:39 +0000 (17:35 +0900)]
staging: wilc1000: rename pvUserArg in wilc_remain_on_channel

This patch renames pvUserArg to user_arg to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename RemainOnChanReady in wilc_remain_on_channel
Chaehyun Lim [Sun, 3 Jan 2016 08:35:38 +0000 (17:35 +0900)]
staging: wilc1000: rename RemainOnChanReady in wilc_remain_on_channel

This patch renames RemainOnChanReady to ready to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename RemainOnChanExpired in wilc_remain_on_channel
Chaehyun Lim [Sun, 3 Jan 2016 08:35:37 +0000 (17:35 +0900)]
staging: wilc1000: rename RemainOnChanExpired in wilc_remain_on_channel

This patch renames RemainOnChanExpired to expired to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u32duration in wilc_remain_on_channel
Chaehyun Lim [Sun, 3 Jan 2016 08:35:36 +0000 (17:35 +0900)]
staging: wilc1000: rename u32duration in wilc_remain_on_channel

This patch renames u32duration to duration to remove u32 prefix.
There is no need u32 prefix to show data type of this variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u32SessionID in wilc_remain_on_channel
Chaehyun Lim [Sun, 3 Jan 2016 08:35:35 +0000 (17:35 +0900)]
staging: wilc1000: rename u32SessionID in wilc_remain_on_channel

This patch renames u32SessionID to session_id to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix return type of wilc_remain_on_channel
Chaehyun Lim [Sun, 3 Jan 2016 08:35:34 +0000 (17:35 +0900)]
staging: wilc1000: fix return type of wilc_remain_on_channel

This patch changes return type of wilc_remain_on_channel from s32 to
int. The result variable gets return value from wilc_mq_send that has
data type of int. It should be changed return type of this function as
well as data type of result variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u32duration in struct remain_ch
Chaehyun Lim [Sun, 3 Jan 2016 08:35:33 +0000 (17:35 +0900)]
staging: wilc1000: rename u32duration in struct remain_ch

The patch renames u32duration to duration that is a member of struct
remain_ch. The prefix u32 shows data type of its member, but there is no
need to use u32 prefix to represent data type.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: move static declaration of host_int_get_ipaddress
Chaehyun Lim [Wed, 30 Dec 2015 12:15:44 +0000 (21:15 +0900)]
staging: wilc1000: move static declaration of host_int_get_ipaddress

This patch moves static function declaration to front part of
host_interface.c file.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u16ipadd in host_int_get_ipaddress
Chaehyun Lim [Wed, 30 Dec 2015 12:15:43 +0000 (21:15 +0900)]
staging: wilc1000: rename u16ipadd in host_int_get_ipaddress

This patch renames u16ipadd to ip_addr to remove u16 prefix.
There is no need to use this prefix to show data type of this argument.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: remove argument hif_drv in host_int_get_ipaddress
Chaehyun Lim [Wed, 30 Dec 2015 12:15:42 +0000 (21:15 +0900)]
staging: wilc1000: remove argument hif_drv in host_int_get_ipaddress

This patch removes hif_drv argument of host_int_get_ipaddress.
There is no need to pass hif_drv in this function because hif_drv is a
member of vif. It is removed struct host_if_drv and use hif_drv of vif.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix return type of host_int_get_ipaddress
Chaehyun Lim [Wed, 30 Dec 2015 12:15:41 +0000 (21:15 +0900)]
staging: wilc1000: fix return type of host_int_get_ipaddress

This patch changes return type of host_int_get_ipaddress from s32 to
int. The result variable gets return value from wilc_mq_send that has
data type of int. It should be changed return type of this function as
well as data type of result variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: remove return statement
Chaehyun Lim [Wed, 30 Dec 2015 12:15:40 +0000 (21:15 +0900)]
staging: wilc1000: remove return statement

This patch removes return statement that is always returned 0.
wilc_setup_ipaddress can not run to the end due to return statement.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u16ipadd in wilc_setup_ipaddress
Chaehyun Lim [Wed, 30 Dec 2015 12:15:39 +0000 (21:15 +0900)]
staging: wilc1000: rename u16ipadd in wilc_setup_ipaddress

This patch renames u16ipadd to ip_addr to remove u16 prefix.
There is no need to use prefix to show data type of this argument.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix return type of wilc_setup_ipaddress
Chaehyun Lim [Wed, 30 Dec 2015 12:15:38 +0000 (21:15 +0900)]
staging: wilc1000: fix return type of wilc_setup_ipaddress

This patch changes return type of wilc_setup_ipaddress from s32 to int.
The result variable gets return value from wilc_mq_send that has data
type of int. It should be changed return type of this function as well
as data type of result variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pstrMulticastFilterParam in wilc_setup_multicast_filter
Chaehyun Lim [Wed, 30 Dec 2015 12:15:37 +0000 (21:15 +0900)]
staging: wilc1000: rename pstrMulticastFilterParam in wilc_setup_multicast_filter

This patch renames pstrMulticastFilterParam to multicast_filter_param to
avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u32count in wilc_setup_multicast_filter
Chaehyun Lim [Wed, 30 Dec 2015 12:15:36 +0000 (21:15 +0900)]
staging: wilc1000: rename u32count in wilc_setup_multicast_filter

This patch renames u32count to count to remove u32 prefix.
There is no need to use this prefix to show data type of this argument.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename bIsEnabled in wilc_setup_multicast_filter
Chaehyun Lim [Wed, 30 Dec 2015 12:15:35 +0000 (21:15 +0900)]
staging: wilc1000: rename bIsEnabled in wilc_setup_multicast_filter

This patch renames bIsEnabled to enabled to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix return type of wilc_setup_multicast_filter
Chaehyun Lim [Wed, 30 Dec 2015 12:15:34 +0000 (21:15 +0900)]
staging: wilc1000: fix return type of wilc_setup_multicast_filter

This patch changes return type of wilc_setup_multicast_filter from s32
to int. The result variable gets return value from wilc_mq_send that has
return type of int. It should be changed return type of this function as
well as data type of result variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pstrPowerMgmtParam in wilc_set_power_mgmt
Chaehyun Lim [Wed, 30 Dec 2015 12:15:33 +0000 (21:15 +0900)]
staging: wilc1000: rename pstrPowerMgmtParam in wilc_set_power_mgmt

This patch renames pstrPowerMgmtParam to pwr_mgmt_info to avoid
camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u32Timeout in wilc_set_power_mgmt
Chaehyun Lim [Wed, 30 Dec 2015 12:15:32 +0000 (21:15 +0900)]
staging: wilc1000: rename u32Timeout in wilc_set_power_mgmt

This patch renames u32Timeout to timeout to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename bIsEnabled in wilc_set_power_mgmt
Chaehyun Lim [Wed, 30 Dec 2015 12:15:31 +0000 (21:15 +0900)]
staging: wilc1000: rename bIsEnabled in wilc_set_power_mgmt

This patch renames bIsEnabled to enabled to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix return type of wilc_set_power_mgmt
Chaehyun Lim [Wed, 30 Dec 2015 12:15:30 +0000 (21:15 +0900)]
staging: wilc1000: fix return type of wilc_set_power_mgmt

This patch changes return type of wilc_set_power_mgmt from s32 to int.
The result variable gets return value from wilc_mq_send that has return
type of int. It should be changed return type of this function as well
as data type of result variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u32SessionID in wilc_listen_state_expired
Chaehyun Lim [Wed, 30 Dec 2015 12:15:29 +0000 (21:15 +0900)]
staging: wilc1000: rename u32SessionID in wilc_listen_state_expired

This patch renames u32SessionID to session_id to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix return type of wilc_listen_state_expired
Chaehyun Lim [Wed, 30 Dec 2015 12:15:28 +0000 (21:15 +0900)]
staging: wilc1000: fix return type of wilc_listen_state_expired

This patch changes return type of wilc_listen_state_expired from s32 to
int. The result variable gets return value from wilc_mq_send that has
return type of int. It should be changed return type of this function as
well as data type of result variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename bReg in wilc_frame_register
Chaehyun Lim [Wed, 30 Dec 2015 12:15:27 +0000 (21:15 +0900)]
staging: wilc1000: rename bReg in wilc_frame_register

This patch renames bReg to reg to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename u16FrameType in wilc_frame_register
Chaehyun Lim [Wed, 30 Dec 2015 12:15:26 +0000 (21:15 +0900)]
staging: wilc1000: rename u16FrameType in wilc_frame_register

This patch renames u16FrameType to frame_type to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix return type of wilc_frame_register
Chaehyun Lim [Wed, 30 Dec 2015 12:15:25 +0000 (21:15 +0900)]
staging: wilc1000: fix return type of wilc_frame_register

This patch changes return type of wilc_frame_register from s32 to int.
The result variable gets return value from wilc_mq_send that has return
type of int. It should be changed return type of this function as well
as data type of result variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: rename pstrStatistics in wilc_get_statistics
Chaehyun Lim [Thu, 24 Dec 2015 07:52:39 +0000 (16:52 +0900)]
staging: wilc1000: rename pstrStatistics in wilc_get_statistics

This patch renames pstrStatistics to stats to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix return type of wilc_get_statistics
Chaehyun Lim [Thu, 24 Dec 2015 07:52:38 +0000 (16:52 +0900)]
staging: wilc1000: fix return type of wilc_get_statistics

This patch changes return type of wilc_get_statistics from s32 to int.
The result variable gets return value from wilc_mq_send that has return
type of int. It should be changed return type of this function as well
as data type of result variable.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>