GitHub/moto-9609/android_kernel_motorola_exynos9610.git
9 years agostaging: wilc1000: remove function pointer spi_trx
Glen Lee [Fri, 6 Nov 2015 09:40:13 +0000 (18:40 +0900)]
staging: wilc1000: remove function pointer spi_trx

This patch removes function pointer spi_trx and call linux_spi_write_read
directly.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove function pointer spi_rx of wilc_wlan_io_func_t
Glen Lee [Fri, 6 Nov 2015 09:40:12 +0000 (18:40 +0900)]
staging: wilc1000: remove function pointer spi_rx of wilc_wlan_io_func_t

This patch removes spi_rx of wilc_wlan_io_func_t and it's related codes since
it is not used anymore.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove function pointer spi_rx of wilc_spi_t
Glen Lee [Fri, 6 Nov 2015 09:40:11 +0000 (18:40 +0900)]
staging: wilc1000: remove function pointer spi_rx of wilc_spi_t

This patch removes function pointer spi_rx of wilc_spi_t and just call
linux_spi_read instead.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove function pointer spi_tx of wilc_wlan_io_function_t
Glen Lee [Fri, 6 Nov 2015 09:40:10 +0000 (18:40 +0900)]
staging: wilc1000: remove function pointer spi_tx of wilc_wlan_io_function_t

This patch removes function pointer spi_tx of wilc_wlan_io_func_t because
it is not used anymore.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove function pointer spi_tx of wilc_spi_t
Glen Lee [Fri, 6 Nov 2015 09:40:09 +0000 (18:40 +0900)]
staging: wilc1000: remove function pointer spi_tx of wilc_spi_t

This patch removes function pointer spi_tx of wilc_spi_t and call
linux_spi_write directly.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: wilc_spi.c: add prefix wilc in all function name
Glen Lee [Fri, 6 Nov 2015 09:40:08 +0000 (18:40 +0900)]
staging: wilc1000: wilc_spi.c: add prefix wilc in all function name

This patch add prefix wilc for all functions name because the function name
such as spi_write, spi_read and spi_sync are same as linux spi function.
Hence, this should be done before restructuring wilc_spi.c and
linux_wlan_spi.c later.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: call linux_sdio_init instead of io_init
Glen Lee [Fri, 6 Nov 2015 09:40:07 +0000 (18:40 +0900)]
staging: wilc1000: call linux_sdio_init instead of io_init

Just call linux_sdio_init instead of io_init function pointer.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove varialbe sdio_set_default_speed
Glen Lee [Fri, 6 Nov 2015 09:40:06 +0000 (18:40 +0900)]
staging: wilc1000: remove varialbe sdio_set_default_speed

This patch removes sdio_set_default_speed of wilc_wlan_io_func_t which is
not used anymore and also remove struct sdio since it is empty.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove function pointer sdio_set_default_speed
Glen Lee [Fri, 6 Nov 2015 09:40:05 +0000 (18:40 +0900)]
staging: wilc1000: remove function pointer sdio_set_default_speed

This patch removes function pointer sdio_set_default_speed of wilc_sdio_t
and call linux_sdio_set_default_speed() directly.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove sdio_set_max_speed
Glen Lee [Fri, 6 Nov 2015 09:40:04 +0000 (18:40 +0900)]
staging: wilc1000: remove sdio_set_max_speed

This patch removes sdio_set_max_speed of wilc_wlan_io_func_t which is not
used any more.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove function pointer sdio_set_max_speed
Glen Lee [Fri, 6 Nov 2015 09:40:03 +0000 (18:40 +0900)]
staging: wilc1000: remove function pointer sdio_set_max_speed

This patch removes function pointer sdio_set_max_speed of wilc_sdio_t and
call the function directly.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove sdio_cmd53 of wilc_wlan_io_func_t
Glen Lee [Fri, 6 Nov 2015 09:40:02 +0000 (18:40 +0900)]
staging: wilc1000: remove sdio_cmd53 of wilc_wlan_io_func_t

This patch removes sdio_cmd53 of wilc_wlan_io_func_t which is not used.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove function pointer sdio_cmd53
Glen Lee [Fri, 6 Nov 2015 09:40:01 +0000 (18:40 +0900)]
staging: wilc1000: remove function pointer sdio_cmd53

This patch removes function pointer sdio_cmd53 of wilc_sdio_t and just call
the function directly.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove sdio_cmd52 of wilc_wlan_io_func_t
Glen Lee [Fri, 6 Nov 2015 09:40:00 +0000 (18:40 +0900)]
staging: wilc1000: remove sdio_cmd52 of wilc_wlan_io_func_t

This patch removes sdio_cmd52 of wilc_wlan_io_func_t which is not used.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove function pointer sdio_cmd52
Glen Lee [Fri, 6 Nov 2015 09:39:59 +0000 (18:39 +0900)]
staging: wilc1000: remove function pointer sdio_cmd52

This patch removes function pointer sdio_cmd52 of wilc_sdio_t and just call
the function directly.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: separate hif_sdio and hif_spi into different module
Glen Lee [Fri, 6 Nov 2015 09:39:58 +0000 (18:39 +0900)]
staging: wilc1000: separate hif_sdio and hif_spi into different module

hif_sdio and hif_spi objects are compiled all the time even though one of SPI
or SDIO is selected. This patch separates hif_sdio and hif_spi into different
modules using ifdef define.
After rework SPI and SDIO modules with only one hif interface, the define
WILC_SDIO will be removed. This is first path of this series.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename u8WidCnt of handle_cfg_param function
Leo Kim [Fri, 6 Nov 2015 02:20:12 +0000 (11:20 +0900)]
staging: wilc1000: rename u8WidCnt of handle_cfg_param function

This patch renames u8WidCnt variable of handle_cfg_param function to wid_cnt
to avoid camelcase.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename strWIDList of handle_cfg_param function
Leo Kim [Fri, 6 Nov 2015 02:20:11 +0000 (11:20 +0900)]
staging: wilc1000: rename strWIDList of handle_cfg_param function

This patch renames strWIDList variable of handle_cfg_param function to wid_list
to avoid camelcase.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Handle_CfgParam function
Leo Kim [Fri, 6 Nov 2015 02:20:10 +0000 (11:20 +0900)]
staging: wilc1000: rename Handle_CfgParam function

This patch renames Handle_CfgParam function to handle_cfg_param
to avoid camelcase.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Handle_GetMacAddress function
Leo Kim [Fri, 6 Nov 2015 02:20:09 +0000 (11:20 +0900)]
staging: wilc1000: rename Handle_GetMacAddress function

This patch renames Handle_GetMacAddress function to handle_get_mac_address
to avoid camelcase.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Handle_SetMacAddress function
Leo Kim [Fri, 6 Nov 2015 02:20:08 +0000 (11:20 +0900)]
staging: wilc1000: rename Handle_SetMacAddress function

This patch renames Handle_SetMacAddress function to handle_set_mac_address
to avoid camelcase.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Handle_get_IPAddress function
Leo Kim [Fri, 6 Nov 2015 02:20:07 +0000 (11:20 +0900)]
staging: wilc1000: rename Handle_get_IPAddress function

This patch renames Handle_get_IPAddress function to handle_get_ip_address
to avoid camelcase.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Handle_set_IPAddress function
Leo Kim [Fri, 6 Nov 2015 02:20:06 +0000 (11:20 +0900)]
staging: wilc1000: rename Handle_set_IPAddress function

This patch renames Handle_set_IPAddress function to handle_set_ip_address
to avoid camelcase.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Handle_SetOperationMode function
Leo Kim [Fri, 6 Nov 2015 02:20:05 +0000 (11:20 +0900)]
staging: wilc1000: rename Handle_SetOperationMode function

This patch renames Handle_SetOperationMode function to handle_set_operation_mode
to avoid camelcase.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Handle_SetWfiDrvHandler function
Leo Kim [Fri, 6 Nov 2015 02:20:04 +0000 (11:20 +0900)]
staging: wilc1000: rename Handle_SetWfiDrvHandler function

This patch renames Handle_SetWfiDrvHandler function to handle_set_wfi_drv_handler
to avoid camelcase.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Handle_SetChannel function
Leo Kim [Fri, 6 Nov 2015 02:20:03 +0000 (11:20 +0900)]
staging: wilc1000: rename Handle_SetChannel function

This patch renames Handle_SetChannel function to handle_set_channel
to avoid camelcase.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove typedef from wilc_hif_func_t
Leo Kim [Fri, 6 Nov 2015 02:20:02 +0000 (11:20 +0900)]
staging: wilc1000: remove typedef from wilc_hif_func_t

This patch removes typedef from the struct wilc_hif_func_t and
renames it to wilc_hif_func.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove typedef from wilc_cfg_rsp_t
Leo Kim [Fri, 6 Nov 2015 02:20:01 +0000 (11:20 +0900)]
staging: wilc1000: remove typedef from wilc_cfg_rsp_t

This patch removes typedef from the struct wilc_cfg_rsp_t and
renames it to wilc_cfg_rsp.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove unused typedef wilc_wlan_cfg_func_t
Leo Kim [Fri, 6 Nov 2015 02:20:00 +0000 (11:20 +0900)]
staging: wilc1000: remove unused typedef wilc_wlan_cfg_func_t

This patch removes unused typedef wilc_wlan_cfg_func_t of wilc_wlan.h.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove typedef from wilc_cfg_frame_t
Leo Kim [Fri, 6 Nov 2015 02:19:59 +0000 (11:19 +0900)]
staging: wilc1000: remove typedef from wilc_cfg_frame_t

This patch removes typedef from the struct wilc_cfg_frame_t and
renames it to wilc_cfg_frame.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes please don't use multiple blank lines
Leo Kim [Fri, 6 Nov 2015 02:19:58 +0000 (11:19 +0900)]
staging: wilc1000: fixes please don't use multiple blank lines

This patch fixes the checks reported by checkpatch.pl
for Please don't use multiple blank lines.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes prefer using the BIT macro
Leo Kim [Fri, 6 Nov 2015 02:19:57 +0000 (11:19 +0900)]
staging: wilc1000: fixes prefer using the BIT macro

This patch fixes the warning reported by checkpatch.pl
for prefer using the BIT macro.
And, removes unnecessary bit increase defines.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: wilc_wlan.h: alignment defines
Leo Kim [Fri, 6 Nov 2015 02:19:56 +0000 (11:19 +0900)]
staging: wilc1000: wilc_wlan.h: alignment defines

This patch fixes alignment of defines.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: replace numeric type to kernel error type
Leo Kim [Fri, 6 Nov 2015 02:19:55 +0000 (11:19 +0900)]
staging: wilc1000: replace numeric type to kernel error type

This patch replaces numeric type to generic type by kernel style.
 -5 -> -EIO
 -105 -> -ENOBUFS

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove warnings line over 80 characters
Leo Kim [Fri, 6 Nov 2015 02:19:54 +0000 (11:19 +0900)]
staging: wilc1000: remove warnings line over 80 characters

This patch removes the warnings reported by checkpatch.pl
for line over 80 characters.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes possible unnecessary 'out of memory' message
Leo Kim [Fri, 6 Nov 2015 02:19:53 +0000 (11:19 +0900)]
staging: wilc1000: fixes possible unnecessary 'out of memory' message

This patch fixes the warning reported by checkpatch.pl
for possible unnecessary 'out of memory' message

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes space prohibited between function name and open parenthesis
Leo Kim [Fri, 6 Nov 2015 02:19:52 +0000 (11:19 +0900)]
staging: wilc1000: fixes space prohibited between function name and open parenthesis

This patch fixes the warning reported by checkpatch.pl
for space prohibited between function name and open parenthesis '('

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename tcp_PendingAck_index of struct txq_entry_t
Leo Kim [Fri, 6 Nov 2015 02:19:51 +0000 (11:19 +0900)]
staging: wilc1000: rename tcp_PendingAck_index of struct txq_entry_t

This patch renames tcp_PendingAck_index of struct txq_entry_t to index
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes alignment should match open parenthesis
Leo Kim [Fri, 6 Nov 2015 02:19:50 +0000 (11:19 +0900)]
staging: wilc1000: fixes alignment should match open parenthesis

This patch fixes the checks reported by checkpatch.pl
for alignment should match open parenthesis.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: wilc_wlan.c: remove unused pointer variables
Leo Kim [Fri, 6 Nov 2015 02:19:49 +0000 (11:19 +0900)]
staging: wilc1000: wilc_wlan.c: remove unused pointer variables

This patch removes unused two pointer variable.
 - Free_head
 - Alloc_head
It's pointer variables unused inside code.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename drvHandler in wilc_wlan_cfg_get function
Leo Kim [Fri, 6 Nov 2015 02:13:10 +0000 (11:13 +0900)]
staging: wilc1000: rename drvHandler in wilc_wlan_cfg_get function

This patch rename drvHandler to drv_handler that is fifth argument of
wilc_wlan_cfg_get function to avoid camelcase.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename drvHandler in wilc_wlan_cfg_set function
Leo Kim [Fri, 6 Nov 2015 02:13:09 +0000 (11:13 +0900)]
staging: wilc1000: rename drvHandler in wilc_wlan_cfg_set function

This patch rename drvHandler to drv_handler that is seventh argument of
wilc_wlan_cfg_set function to avoid camelcase.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename drvHandler in wilc_wlan_cfg_commit function
Leo Kim [Fri, 6 Nov 2015 02:13:08 +0000 (11:13 +0900)]
staging: wilc1000: rename drvHandler in wilc_wlan_cfg_commit function

This patch rename drvHandler to drv_handler that is third argument of
wilc_wlan_cfg_commit function to avoid camelcase.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes braces {} are not necessary for any arm of this statement
Leo Kim [Fri, 6 Nov 2015 02:13:07 +0000 (11:13 +0900)]
staging: wilc1000: fixes braces {} are not necessary for any arm of this statement

This patch fixes the warning reported by checkpatch.pl
for braces {} are not necessary for any arm of this statement

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes braces {} should be used on all arms of this statement
Leo Kim [Fri, 6 Nov 2015 02:13:06 +0000 (11:13 +0900)]
staging: wilc1000: fixes braces {} should be used on all arms of this statement

This patch fixes the error reported by checkpatch.pl
for braces {} should be used on all arms of this statement

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename bValue in set_machw_change_vir_if function
Leo Kim [Fri, 6 Nov 2015 02:13:05 +0000 (11:13 +0900)]
staging: wilc1000: rename bValue in set_machw_change_vir_if function

This patch rename bValue to value that is second argument of
set_machw_change_vir_if function to avoid camelcase.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes a struct allocation to match coding standards
Leo Kim [Fri, 6 Nov 2015 02:13:04 +0000 (11:13 +0900)]
staging: wilc1000: fixes a struct allocation to match coding standards

This patch fixes the checks reported by checkpatch.pl
for prefer kmalloc(sizeof(*rqe)...) over kmalloc(sizeof(struct rxq_entry_t)...)

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename pBSSID variable
Leo Kim [Fri, 6 Nov 2015 02:13:03 +0000 (11:13 +0900)]
staging: wilc1000: rename pBSSID variable

This patch rename the pBSSID variable to bssid
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes else should follow close brace '}'
Leo Kim [Fri, 6 Nov 2015 02:13:02 +0000 (11:13 +0900)]
staging: wilc1000: fixes else should follow close brace '}'

This patch fixes the error reported by checkpatch.pl
for else should follow close brace '}'

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename pu32TxqCount in wilc_wlan_handle_txq function
Leo Kim [Fri, 6 Nov 2015 02:13:01 +0000 (11:13 +0900)]
staging: wilc1000: rename pu32TxqCount in wilc_wlan_handle_txq function

This patch rename pu32TxqCount to txq_count that is second argument of
wilc_wlan_handle_txq function to avoid camelcase.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove unused argument of chip_sleep_manually function
Leo Kim [Fri, 6 Nov 2015 02:13:00 +0000 (11:13 +0900)]
staging: wilc1000: remove unused argument of chip_sleep_manually function

This patch removes u32SleepTime that is second argument of
chip_sleep_manually function because it is not used in this function.
Remove argument in the function call also.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes a struct allocation to match coding standards
Leo Kim [Fri, 6 Nov 2015 02:12:59 +0000 (11:12 +0900)]
staging: wilc1000: fixes a struct allocation to match coding standards

This patch fixes the checks reported by checkpatch.pl
for prefer kmalloc(sizeof(*tqe)...) over kmalloc(sizeof(struct txq_entry_t)...)

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename is_TCP_ACK_Filter_Enabled function
Leo Kim [Fri, 6 Nov 2015 02:12:58 +0000 (11:12 +0900)]
staging: wilc1000: rename is_TCP_ACK_Filter_Enabled function

This patch rename the is_TCP_ACK_Filter_Enabled function to
is_tcp_ack_filter_enabled to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Enable_TCP_ACK_Filter function
Leo Kim [Fri, 6 Nov 2015 02:12:57 +0000 (11:12 +0900)]
staging: wilc1000: rename Enable_TCP_ACK_Filter function

This patch rename the Enable_TCP_ACK_Filter function to enable_tcp_ack_filter
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename EnableTCPAckFilter variable
Leo Kim [Fri, 6 Nov 2015 02:12:56 +0000 (11:12 +0900)]
staging: wilc1000: rename EnableTCPAckFilter variable

This patch rename the EnableTCPAckFilter variable to enabled
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Dropped variable
Leo Kim [Fri, 6 Nov 2015 02:12:55 +0000 (11:12 +0900)]
staging: wilc1000: rename Dropped variable

This patch rename the Dropped variable to dropped
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove warnings line over 80 characters
Leo Kim [Fri, 6 Nov 2015 02:12:54 +0000 (11:12 +0900)]
staging: wilc1000: remove warnings line over 80 characters

This patch removes the warnings reported by checkpatch.pl
for line over 80 characters.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Ack_no variable
Leo Kim [Fri, 6 Nov 2015 02:12:53 +0000 (11:12 +0900)]
staging: wilc1000: rename Ack_no variable

This patch rename the Ack_no variable to ack_no
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Data_offset variable
Leo Kim [Fri, 6 Nov 2015 02:12:52 +0000 (11:12 +0900)]
staging: wilc1000: rename Data_offset variable

This patch rename the Data_offset variable to data_offset
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Total_Length variable
Leo Kim [Fri, 6 Nov 2015 02:12:51 +0000 (11:12 +0900)]
staging: wilc1000: rename Total_Length variable

This patch rename the Total_Length variable to total_length
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove do-nothing else condition case.
Leo Kim [Fri, 6 Nov 2015 02:12:50 +0000 (11:12 +0900)]
staging: wilc1000: remove do-nothing else condition case.

This patch removes do-nothing else condition case.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Session_index member variable
Leo Kim [Fri, 6 Nov 2015 02:12:49 +0000 (11:12 +0900)]
staging: wilc1000: rename Session_index member variable

This patch rename the Ack Session_index  variable to session_index
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Ack member variable
Leo Kim [Fri, 6 Nov 2015 02:12:48 +0000 (11:12 +0900)]
staging: wilc1000: rename Ack member variable

This patch rename the Ack member variable to ack
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename add_TCP_Pending_Ack function
Leo Kim [Fri, 6 Nov 2015 02:12:47 +0000 (11:12 +0900)]
staging: wilc1000: rename add_TCP_Pending_Ack function

This patch rename the add_TCP_Pending_Ack function to add_tcp_pending_ack
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Update_TCP_track_session function
Leo Kim [Fri, 6 Nov 2015 02:12:46 +0000 (11:12 +0900)]
staging: wilc1000: rename Update_TCP_track_session function

This patch rename the Update_TCP_track_session function to update_tcp_session
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename add_TCP_track_session function
Leo Kim [Fri, 6 Nov 2015 02:12:45 +0000 (11:12 +0900)]
staging: wilc1000: rename add_TCP_track_session function

This patch rename the add_TCP_track_session function to add_tcp_session
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Init_TCP_tracking function
Leo Kim [Fri, 6 Nov 2015 02:12:44 +0000 (11:12 +0900)]
staging: wilc1000: rename Init_TCP_tracking function

This patch rename the Init_TCP_tracking function to init_tcp_tracking
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Pending_Acks variable
Leo Kim [Fri, 6 Nov 2015 02:12:43 +0000 (11:12 +0900)]
staging: wilc1000: rename Pending_Acks variable

This patch rename the Pending_Acks variable to pending_acks
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Opened_TCP_session variable
Leo Kim [Fri, 6 Nov 2015 02:12:42 +0000 (11:12 +0900)]
staging: wilc1000: rename Opened_TCP_session variable

This patch rename the Opened_TCP_session variable to tcp_session
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename PendingAcks_arrBase variable
Leo Kim [Fri, 6 Nov 2015 02:12:41 +0000 (11:12 +0900)]
staging: wilc1000: rename PendingAcks_arrBase variable

This patch rename the PendingAcks_arrBase variable to pending_base
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Pending_Acks_info variable
Leo Kim [Fri, 6 Nov 2015 02:12:40 +0000 (11:12 +0900)]
staging: wilc1000: rename Pending_Acks_info variable

This patch rename the Pending_Acks_info variable to pending_acks_info
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Acks_keep_track_info variable
Leo Kim [Fri, 6 Nov 2015 02:12:39 +0000 (11:12 +0900)]
staging: wilc1000: rename Acks_keep_track_info variable

This patch rename the Acks_keep_track_info variable to ack_session_info
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Session_index of struct pending_acks_info
Leo Kim [Fri, 6 Nov 2015 02:12:38 +0000 (11:12 +0900)]
staging: wilc1000: rename Session_index of struct pending_acks_info

This patch rename Session_index of struct pending_acks_info to session_index
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove typedef of struct Pending_Acks_info_t
Leo Kim [Fri, 6 Nov 2015 02:12:37 +0000 (11:12 +0900)]
staging: wilc1000: remove typedef of struct Pending_Acks_info_t

This patch remove typedef of struct Pending_Acks_info_t.
And, rename the Pending_Acks_info_t to pending_acks_info.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Bigger_Ack_num of struct ack_session_info
Leo Kim [Fri, 6 Nov 2015 02:12:36 +0000 (11:12 +0900)]
staging: wilc1000: rename Bigger_Ack_num of struct ack_session_info

This patch rename Bigger_Ack_num of struct ack_session_info to bigger_ack_num
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Ack_seq_num of struct ack_session_info
Leo Kim [Fri, 6 Nov 2015 02:12:35 +0000 (11:12 +0900)]
staging: wilc1000: rename Ack_seq_num of struct ack_session_info

This patch rename Ack_seq_num of struct ack_session_info to seq_num
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Ack_session_info struct variable
Leo Kim [Fri, 6 Nov 2015 02:12:34 +0000 (11:12 +0900)]
staging: wilc1000: rename Ack_session_info struct variable

This patch rename Ack_session_info struct variable to ack_session_info
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Statisitcs_DroppedAcks variable
Leo Kim [Fri, 6 Nov 2015 02:12:33 +0000 (11:12 +0900)]
staging: wilc1000: rename Statisitcs_DroppedAcks variable

This patch rename Statisitcs_DroppedAcks variable to dropped_acks
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Statisitcs_totalAcks variable
Leo Kim [Fri, 6 Nov 2015 02:12:32 +0000 (11:12 +0900)]
staging: wilc1000: rename Statisitcs_totalAcks variable

This patch rename Statisitcs_totalAcks variable to total_acks
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: replace explicit NULL comparisons with !
Leo Kim [Fri, 6 Nov 2015 02:12:31 +0000 (11:12 +0900)]
staging: wilc1000: replace explicit NULL comparisons with !

This patch replace explicit NULL comparison with ! operator to simplify code.
Reported by checkpatch.pl for Comparison to NULL could be written "!XXX" or "XXX".

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename genuChipPSstate variable
Leo Kim [Fri, 6 Nov 2015 02:12:30 +0000 (11:12 +0900)]
staging: wilc1000: rename genuChipPSstate variable

This patch rename genuChipPSstate variable to chip_ps_state
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes missing a blank line after declarations
Leo Kim [Fri, 6 Nov 2015 02:12:29 +0000 (11:12 +0900)]
staging: wilc1000: fixes missing a blank line after declarations

This patch fixes the warnings reported by checkpatch.pl
for Missing a blank line after declarations.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes add blank line after function declaration
Leo Kim [Fri, 6 Nov 2015 02:12:28 +0000 (11:12 +0900)]
staging: wilc1000: fixes add blank line after function declaration

This patch fixes the warnings reported by checkpatch.pl
for please use a blank line after function/struct/union/enum declarations

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes blank lines aren't necessary brace
Leo Kim [Fri, 6 Nov 2015 02:12:27 +0000 (11:12 +0900)]
staging: wilc1000: fixes blank lines aren't necessary brace

This patch fixes the checks reported by checkpatch.pl
for Blank lines aren't necessary after an open brace '{' and
Blank lines aren't necessary before a close brace '}'.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes please don't use multiple blank lines
Leo Kim [Fri, 6 Nov 2015 02:12:26 +0000 (11:12 +0900)]
staging: wilc1000: fixes please don't use multiple blank lines

This patch fixes the checks reported by checkpatch.pl
for Please don't use multiple blank lines.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: wilc_wlan.c: remove over-commenting
Leo Kim [Fri, 6 Nov 2015 02:12:25 +0000 (11:12 +0900)]
staging: wilc1000: wilc_wlan.c: remove over-commenting

There are over-commenting in the wilc_wlan.c file and most of them
are not helpful to explain what the code does and generate 80 ending
line over warnings. So, all of comments are removed in this patch and the
comments will later be added if necessary with the preferred Linux style.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes that open brace { should be on the previous line
Leo Kim [Fri, 6 Nov 2015 02:12:24 +0000 (11:12 +0900)]
staging: wilc1000: fixes that open brace { should be on the previous line

This patch fixes the error reported by checkpatch.pl
for that open brace { should be on the previous line.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes a struct allocation to match coding standards
Leo Kim [Fri, 6 Nov 2015 02:12:23 +0000 (11:12 +0900)]
staging: wilc1000: fixes a struct allocation to match coding standards

This patch fixes the checks reported by checkpatch.pl
for prefer kmalloc(sizeof(*tx_data)...) over kmalloc(sizeof(struct tx_complete_data)...)

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes alignment should match open parenthesis
Leo Kim [Fri, 6 Nov 2015 02:12:22 +0000 (11:12 +0900)]
staging: wilc1000: fixes alignment should match open parenthesis

This patch fixes the checks reported by checkpatch.pl
for alignment should match open parenthesis

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fix kbuild test robot error
Glen Lee [Thu, 5 Nov 2015 07:12:08 +0000 (16:12 +0900)]
staging: wilc1000: fix kbuild test robot error

This patch fixes build warning and error reported by kbuild test robot.
It is fixed by including netdevice.h.

>> drivers/staging/wilc1000/wilc_wlan_if.h:940:27: warning: 'struct net_device'
 declared inside parameter list
    int wilc_wlan_init(struct net_device *dev, wilc_wlan_inp_t *inp);
>> drivers/staging/wilc1000/wilc_wlan_if.h:940:27: warning: its scope is only
 this definition or declaration, which is probably not what you want
>> drivers/staging/wilc1000/wilc_wlan.c:1954:5: error: conflicting types for
 'wilc_wlan_init'
    int wilc_wlan_init(struct net_device *dev, wilc_wlan_inp_t *inp)

Fixes: 30135ce ("staging: wilc1000: wilc_wlan_init: add argument struct net_device")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename pu8UdpBuffer of mac_xmit function
Leo Kim [Thu, 5 Nov 2015 05:36:39 +0000 (14:36 +0900)]
staging: wilc1000: rename pu8UdpBuffer of mac_xmit function

This patch rename pu8UdpBuffer variable of mac_xmit function to udp_buf
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename QueueCount of mac_xmit function
Leo Kim [Thu, 5 Nov 2015 05:36:38 +0000 (14:36 +0900)]
staging: wilc1000: rename QueueCount of mac_xmit function

This patch rename QueueCount variable of mac_xmit function to queue_count
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename s32Error of mac_ioctl function
Leo Kim [Thu, 5 Nov 2015 05:36:37 +0000 (14:36 +0900)]
staging: wilc1000: rename s32Error of mac_ioctl function

This patch rename s32Error variable of mac_ioctl function to ret
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename host_int_get_MacAddress function
Leo Kim [Thu, 5 Nov 2015 05:36:36 +0000 (14:36 +0900)]
staging: wilc1000: rename host_int_get_MacAddress function

This patch rename host_int_get_MacAddress function to hif_get_mac_address
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: rename Set_machw_change_vir_if function
Leo Kim [Thu, 5 Nov 2015 05:36:35 +0000 (14:36 +0900)]
staging: wilc1000: rename Set_machw_change_vir_if function

This patch rename Set_machw_change_vir_if function to set_machw_change_vir_if
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove goto from mac_open
Leo Kim [Thu, 5 Nov 2015 05:36:34 +0000 (14:36 +0900)]
staging: wilc1000: remove goto from mac_open

This patch removes goto from mac_open function. If address is invalid, goto
handles deinit process and return result.
So, just call deinit process and return the error value directly instead of
goto statement.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove goto from wlan_initialize_threads
Leo Kim [Thu, 5 Nov 2015 05:36:33 +0000 (14:36 +0900)]
staging: wilc1000: remove goto from wlan_initialize_threads

This patch remove goto feature from wlan_initialize_threads function.
Goto feature is 'wilc->close=0' & return result.
So, remove goto feature and it was replaced with the return value directly,
as well as removed unused ret variable.
Also, execute 'wilc->close=0' before return.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: fixes missing a blank line after declarations
Leo Kim [Thu, 5 Nov 2015 05:36:32 +0000 (14:36 +0900)]
staging: wilc1000: fixes missing a blank line after declarations

This patch fixes the warnings reported by checkpatch.pl
for Missing a blank line after declarations.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove goto from linux_wlan_firmware_download
Leo Kim [Thu, 5 Nov 2015 05:36:31 +0000 (14:36 +0900)]
staging: wilc1000: remove goto from linux_wlan_firmware_download

This patch remove goto feature from linux_wlan_firmware_download function.
Goto feature is return result.
So, remove goto functions and it was replaced with the return value directly.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
9 years agostaging: wilc1000: remove goto from linux_wlan_start_firmware
Leo Kim [Thu, 5 Nov 2015 05:36:30 +0000 (14:36 +0900)]
staging: wilc1000: remove goto from linux_wlan_start_firmware

This patch remove goto feature from linux_wlan_start_firmware function.
Goto feature is return result.
So, remove goto functions and it was replaced with the return value directly.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>