Re: [PATCH 3/3] staging: greybus: use preferred kernel type u32

2016-09-20 Thread Chaehyun Lim
On Tue, Sep 20, 2016 at 3:29 PM, Greg KH <gre...@linuxfoundation.org> wrote: > On Tue, Sep 20, 2016 at 09:47:31AM +0900, Chaehyun Lim wrote: >> As suggested by checkpatch.pl: >> >> CHECK: Prefer kernel type 'u32' over 'uint32_t' >> >> Signed-off-b

[PATCH 2/3] staging: greybus: use preferred kernel type u16

2016-09-19 Thread Chaehyun Lim
As suggested by checkpatch.pl: CHECK: Prefer kernel type 'u16' over 'uint16_t' Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/greybus/audio_codec.c | 12 ++-- drivers/staging/greybus/audio_codec.h | 16 drivers/staging/greybus/audi

[PATCH 3/3] staging: greybus: use preferred kernel type u32

2016-09-19 Thread Chaehyun Lim
As suggested by checkpatch.pl: CHECK: Prefer kernel type 'u32' over 'uint32_t' Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/greybus/audio_codec.c | 6 ++-- drivers/staging/greybus/audio_codec.h | 10 +++ drivers/staging/greybus/audi

[PATCH 1/3] staging: greybus: use preferred kernel type u8

2016-09-19 Thread Chaehyun Lim
As suggested by checkpatch.pl: CHECK: Prefer kernel type 'u8' over 'uint8_t' Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/greybus/audio_codec.c | 6 +++--- drivers/staging/greybus/audio_codec.h | 18 +- drivers/staging/greybus/audio_gb.c

[PATCH 1/6] staging: wilc1000: change handle_cfg_param's return type to void

2016-06-12 Thread Chaehyun Lim
When handle_cfg_param is called in hostIFthread that is a kernel thread, it is not checked return type of this function. This patch changes return type to void. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 23 ++-

[PATCH 6/6] staging: wilc1000: remove unnecesary type cast of bss_type

2016-06-12 Thread Chaehyun Lim
There is no need to use type cast of bss_type because hif_drv->cfg_values.bss_type is u8. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging

[PATCH 3/6] staging: wilc1000: rename result in handle_cfg_param

2016-06-12 Thread Chaehyun Lim
This patch renames result to ret that is used to get return value from wilc_send_config_pkt. Some handle_*() functions are used as result, others are used as ret. It will be changed as ret in all handle_*() functions to match variable name. Signed-off-by: Chaehyun Lim <chaehyun@gmail.

[PATCH 4/6] staging: wilc1000: remove unused struct set_mac_addr

2016-06-12 Thread Chaehyun Lim
struct set_mac_addr is not used anymore, so just remove it. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 1 - drivers/staging/wilc1000/host_interface.h | 4 2 files changed, 5 deletions(-) diff --git a/drivers/staging/wi

[PATCH 5/6] staging: wilc1000: add bss_type to remove line over 80 characters

2016-06-12 Thread Chaehyun Lim
A local bss_type variable is added to remove checkpatch warning of line over 80 characters. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wi

[PATCH 2/6] staging: wilc1000: change data type of result in handle_cfg_param

2016-06-12 Thread Chaehyun Lim
This patch changes data type of result variable from s32 to int. result is used to get return value from wilc_send_config_pkt that has return type of int. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion

[PATCH 5/7] staging: wilc1000: change handle_get_mac_address's return type to void

2016-05-02 Thread Chaehyun Lim
When handle_get_mac_address is called in hostIFthread that is a kernel thread, it is not checked return type of this function. This patch changes return type to void and removes braces if statement due to have a single statement. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- d

[PATCH 7/7] staging: wilc1000: rename result in handle_get_mac_address

2016-05-02 Thread Chaehyun Lim
This patch renames result to ret that is used to get return value from wilc_send_config_pkt. Some handle_*() functions are used as result, others are used as ret. It will be changed as ret in all handle_*() functions to match variable name. Signed-off-by: Chaehyun Lim <chaehyun@gmail.

[PATCH 1/7] staging: wilc1000: change handle_get_ip_address's return type to void

2016-05-02 Thread Chaehyun Lim
When handle_get_ip_address is called in hostIFthread that is a kernel thread, it is not checked return type of this function. This patch changes return type to void and removes braces if statement due to have a single statement. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- d

[PATCH 6/7] staging: wilc1000: change data type of result in handle_get_mac_address

2016-05-02 Thread Chaehyun Lim
This patch changes data type of result variable from s32 to int. result is used to get return value from wilc_send_config_pkt that has return type of int. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion

[PATCH 4/7] staging: wilc1000: fix comparison style of if statement in handle_get_ip_address

2016-05-02 Thread Chaehyun Lim
This patch changes conditional comparison of if statement as if (ret) instead of using if (ret != 0) Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wi

[PATCH 3/7] staging: wilc1000: rename result in handle_get_ip_address

2016-05-02 Thread Chaehyun Lim
This patch renames result to ret that is used to get return value from wilc_send_config_pkt. Some handle_*() functions are used as result, others are used as ret. It will be changed as ret in all handle_*() functions to match variable name. Signed-off-by: Chaehyun Lim <chaehyun@gmail.

[PATCH 2/7] staging: wilc1000: change data type of result in handle_get_ip_address

2016-05-02 Thread Chaehyun Lim
This patch changes data type of result variable from s32 to int. result is used to get return value from wilc_send_config_pkt that has return type of int. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion

[PATCH 2/3] staging: wilc1000: change data type of result in handle_set_ip_address

2016-04-18 Thread Chaehyun Lim
This patch changes data type of result variable from s32 to int. result is used to get return value from wilc_send_config_pkt that has return type of int. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion

[PATCH 3/3] staging: wilc1000: rename result in handle_set_ip_address

2016-04-18 Thread Chaehyun Lim
This patch renames result to ret that is used to get return value from wilc_send_config_pkt. Some handle_*() functions are used as result, others are used as ret. It will be changed as ret in all handle_*() functions to match variable name. Signed-off-by: Chaehyun Lim <chaehyun@gmail.

[PATCH 1/3] staging: wilc1000: change handle_set_ip_address's return type to void

2016-04-18 Thread Chaehyun Lim
When handle_set_ip_address is called in hostIFthread that is a kernel thread, it is not checked return type of this function. This patch changes return type to void and removes braces if statement due to have a single statement. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- d

[PATCH 5/7] staging: wilc1000: change handle_set_operation_mode's return type to void

2016-04-06 Thread Chaehyun Lim
When handle_set_operation_mode is called in hostIFthread that is a kernel thread, it is not checked return type of this function. This patch changes return type to void and removes braces if statement due to have a single statement. Signed-off-by: Chaehyun Lim <chaehyun@gmail.

[PATCH 7/7] staging: wilc1000: rename result in handle_set_operation_mode

2016-04-06 Thread Chaehyun Lim
This patch renames result to ret that is used to get return value from wilc_send_config_pkt. Some handle_*() functions are used as result, others are used as ret. It will be changed as ret in all handle_*() functions to match variable name. Signed-off-by: Chaehyun Lim <chaehyun@gmail.

[PATCH 2/7] staging: wilc1000: change handle_set_wfi_drv_handler's return type to void

2016-04-06 Thread Chaehyun Lim
When handle_set_wfi_drv_handler is called in hostIFthread that is a kernel thread, it is not checked return type of this function. This patch changes return type to void and removes braces if statement due to have a single statement. Signed-off-by: Chaehyun Lim <chaehyun@gmail.

[PATCH 3/7] staging: wilc1000: change data type of result in handle_set_wfi_drv_handler

2016-04-06 Thread Chaehyun Lim
This patch changes data type of result variable from s32 to int. result is used to get return value from wilc_send_config_pkt that has return type of int. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion

[PATCH 4/7] staging: wilc1000: rename result in handle_set_wfi_drv_handler

2016-04-06 Thread Chaehyun Lim
This patch renames result to ret that is used to get return value from wilc_send_config_pkt. Some handle_*() function are used as result, others are used as ret. It will be changed as ret in all handle_*() function to match variable name. Signed-off-by: Chaehyun Lim <chaehyun@gmail.

[PATCH 1/7] staging: wilc1000: change return type of ret variable in handle_get_tx_pwr

2016-04-06 Thread Chaehyun Lim
This patch changes return type of ret variable from s32 to int. ret has return value from wilc_send_config_pkt that has return type of int. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH 07/14] staging: wilc1000: remove unused hif_drv in wilc_del_station

2016-04-05 Thread Chaehyun Lim
This patch removes unused hif_drv in wilc_del_station. There is no need to check null and print debug log. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/wi

[PATCH 14/14] staging: wilc1000: remove unused hif_drv in wilc_add_beacon

2016-04-05 Thread Chaehyun Lim
This patch removes unused hif_drv in wilc_add_beacon. There is no need to check null and print debug log. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/wi

[PATCH 13/14] staging: wilc1000: remove unused hif_drv in wilc_del_beacon

2016-04-05 Thread Chaehyun Lim
This patch removes unused hif_drv in wilc_del_beacon. There is no need to check null and print debug log. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/wi

[PATCH 12/14] staging: wilc1000: remove unused hif_drv in wilc_set_pmkid_info

2016-04-05 Thread Chaehyun Lim
This patch removes unused hif_drv in wilc_set_pmkid_info. There is no need to check null and print debug log. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/wi

[PATCH 09/14] staging: wilc1000: remove unused hif_drv in wilc_remain_on_channel

2016-04-05 Thread Chaehyun Lim
This patch removes unused hif_drv in wilc_remain_on_channel. There is no need to check null and print debug log. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/wi

[PATCH 10/14] staging: wilc1000: remove unused hif_drv in wilc_set_mac_chnl_num

2016-04-05 Thread Chaehyun Lim
This patch removes unused hif_drv in wilc_set_mac_chnl_num. There is no need to check null and print debug log. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/wi

[PATCH 08/14] staging: wilc1000: remove unused hif_drv in wilc_add_station

2016-04-05 Thread Chaehyun Lim
This patch removes unused hif_drv in wilc_add_station. There is no need to check null and print debug log. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/wi

[PATCH 11/14] staging: wilc1000: remove unused hif_drv in host_int_get_assoc_res_info

2016-04-05 Thread Chaehyun Lim
This patch removes unused hif_drv in host_int_get_assoc_res_info. There is no need to check null and print debug log. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/s

[PATCH 06/14] staging: wilc1000: remove unused hif_drv in wilc_del_allstation

2016-04-05 Thread Chaehyun Lim
This patch removes unused hif_drv in wilc_del_allstation. There is no need to check null and print debug log. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/wi

[PATCH 05/14] staging: wilc1000: remove unused hif_drv in wilc_edit_station

2016-04-05 Thread Chaehyun Lim
This patch removes unused hif_drv in wilc_edit_station. There is no need to checku null and print debug log. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/wi

[PATCH 03/14] staging: wilc1000: remove unused hif_drv in wilc_setup_multicast_filter

2016-04-05 Thread Chaehyun Lim
This patch removes unused hif_drv in wilc_setup_multicast_filter. There is no need to check null and print debug log. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/s

[PATCH 01/14] staging: wilc1000: remove unused hif_drv in host_int_get_ipaddress

2016-04-05 Thread Chaehyun Lim
This patch removes unused hif_drv in host_int_get_ipaddress. There is no need to check null and print debug log. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/wi

[PATCH 04/14] staging: wilc1000: remove unused hif_drv in wilc_set_power_mgmt

2016-04-05 Thread Chaehyun Lim
This patch removes unused hif_drv in wilc_set_power_mgmt. There is no need to check null and print debug log. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/wi

[PATCH 1/8] staging: wilc1000: rename goto label in handle_cfg_param

2016-04-04 Thread Chaehyun Lim
This patch changes goto label from ERRORHANDLER to unlock. unlock is a more meaningful name than ERRORHANDLER. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 38 +++ 1 file changed, 19 insertions(+), 19 del

[PATCH 8/8] staging: wilc1000: rename pu8Buffer in handle_scan

2016-04-04 Thread Chaehyun Lim
This patch renames pu8Buffer to buffer to avoid camelcase. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/d

[PATCH 6/8] staging: wilc1000: rename strWIDList in handle_scan

2016-04-04 Thread Chaehyun Lim
This patch renames strWIDList to wid_list to avoid camelcase. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 48 +++ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/staging/wi

[PATCH 7/8] staging: wilc1000: rename u32WidsCount in handle_scan

2016-04-04 Thread Chaehyun Lim
This patch renames u32WidsCount to index to avoid camelcase. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 58 +++ 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/drivers/staging/wi

[PATCH 2/8] staging: wilc1000: move Handle_ScanDone function declaration

2016-04-04 Thread Chaehyun Lim
Handle_ScanDone function declaration is moved to front of host_interface.c file. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000/host_interfac

[PATCH 3/8] staging: wilc1000: remove block scope braces and fix indentation

2016-04-04 Thread Chaehyun Lim
This patch removes unnecessary block scope braces and fix indentation of the codes. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/staging/wi

[PATCH 4/8] staging: wilc1000: rename Handle_Scan

2016-04-04 Thread Chaehyun Lim
This patch renames Handle_Scan to handle_scan to avoid camelcase. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/d

[PATCH 5/8] staging: wilc1000: rename pstrHostIFscanAttr in handle_scan

2016-04-04 Thread Chaehyun Lim
This patch renames pstrHostIFscanAttr to scan_info to avoid camelcase. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 55 +++ 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/drivers/staging/wi

[PATCH 4/5] staging: wilc1000: remove unused struct semaphore SemHandleUpdateStats

2016-03-27 Thread Chaehyun Lim
struct semaphore SemHandleUpdateStats is defined but never used in this driver, so just remove it. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 1 - drivers/staging/wilc1000/wilc_wfi_netdevice.h | 1 - 2 files chan

[PATCH 5/5] staging: wilc1000: use mutex instead of struct semaphore hSemScanReq

2016-03-27 Thread Chaehyun Lim
This patch replaces struct semaphore hSemScanReq with struct mutex scan_req_lock. It is better to use mutex than semaphore. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 10 +- drivers/staging/wilc1000/wilc_wfi_netde

[PATCH 3/5] staging: wilc1000: change data type of wid argument in wilc_wlan_cfg_get_val

2016-03-27 Thread Chaehyun Lim
-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/wilc_wlan.c | 4 ++-- drivers/staging/wilc1000/wilc_wlan.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index db79ae2..7

[PATCH 2/2] staging: wilc1000: use completion instead of struct semaphore hif_sema_driver

2016-03-23 Thread Chaehyun Lim
struct semaphore hif_sema_driver is used to signal completion of host interface message. This patch replaces struct semaphore hif_sema_driver with struct completion hif_driver_comp. It is better to use completion than semaphore for this case. Signed-off-by: Chaehyun Lim <chaehyun@gmail.

[PATCH 1/2] staging: wilc1000: use completion instead of struct semaphore hif_sema_thread

2016-03-23 Thread Chaehyun Lim
struct semaphore hif_sema_thread is used to signal completion of host interface thread. This patch replaces struct semaphore hif_sema_thread with struct completion hif_thread_comp. It is better to use completion than semaphore for this case. Signed-off-by: Chaehyun Lim <chaehyun@gmail.

[PATCH] staging: wilc1000: use mutex instead of struct semaphore hif_sema_deinit

2016-03-21 Thread Chaehyun Lim
This patch replaces struct semaphore hif_sema_deinit with struct mutex hif_deinit_lock. It is better to use mutex because mutex gives better performance than semaphore. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 18 +--

[PATCH] staging: wilc1000: use completion instead of struct semaphore hif_sema_wait_response

2016-03-13 Thread Chaehyun Lim
This patch replaces struct semaphore hif_sema_wait_response with struct completion hif_wait_response. In case of struct hif_sema_wait_response, it better to use completion than semaphore. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.

[PATCH] staging: wilc1000: use mutex instead of semaphore sem_cfg_values

2016-03-07 Thread Chaehyun Lim
This patch replaces struct semaphore sem_cfg_values with struct mutex cfg_values_lock. It is better to use mutex than semaphore. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 10 +- drivers/staging/wilc1000/host_interface.

[PATCH 2/6] staging: wilc1000: remove commented codes

2016-03-03 Thread Chaehyun Lim
This patch removes commented codes in struct wilc_cfg_str. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/wilc_wlan_cfg.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wlan_cfg.c b/drivers/staging/wilc1000/wilc_wlan

[PATCH 3/6] staging: wilc1000: rename hardwareProductVersion in struct wilc_mac_cfg

2016-03-03 Thread Chaehyun Lim
This patch renames hardwareProductVersion to hw_product_version to avoid camelcase. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/wilc_wlan_cfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wlan

[PATCH 6/6] staging: wilc1000: use switch statement instead of multiple if statement

2016-03-03 Thread Chaehyun Lim
It is more readable than multiple if-else statement. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/wilc_wlan_cfg.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wlan_cf

[PATCH 1/6] staging: wilc1000: use TAG_PARAM_OFFSET define

2016-03-03 Thread Chaehyun Lim
TAG_PARAM_OFFSET is defined at top of this file so that it is used to simplify codes. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/coreconfigurator.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/staging/wi

[PATCH 4/6] staging: wilc1000: add enum cfg_type_cmd

2016-03-03 Thread Chaehyun Lim
This patch adds a new enum cfg_type_cmd to change hard-coded command type. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/wilc_wlan_cfg.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/drivers/staging/wi

[PATCH 5/6] staging: wilc1000: remove unnecessary comments

2016-03-03 Thread Chaehyun Lim
This patch removes unnecessary comments because enum cfg_cmd_type shows each command type without it. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/wilc_wlan_cfg.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/d

[PATCH 4/5] staging: wilc1000: remove unused define

2016-03-02 Thread Chaehyun Lim
This patch removes INFINITE_SLEEP_TIME that is not used in the driver, so just remove it. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/wilc_wlan_if.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wlan_if.h b/d

[PATCH 3/5] staging: wilc1000: remove typedef from sdio_cmd53_t

2016-03-02 Thread Chaehyun Lim
This patch removes typedef from struct sdio_cmd53_t and renames it to sdio_cmd53. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/wilc_sdio.c| 10 +- drivers/staging/wilc1000/wilc_wlan_if.h | 4 ++-- 2 files changed, 7 insertions(+), 7 del

[PATCH 5/5] staging: wilc1000: remove typedef from enum tenuConnectSts

2016-03-02 Thread Chaehyun Lim
This patch removes typedef from enum tenuConnectSts and renames it to connect_status to avoid camelcase. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/coreconfigurator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/s

[PATCH 2/5] staging: wilc1000: remove unnecessary comment codes

2016-03-02 Thread Chaehyun Lim
This patch removes unnecessary comment code in struct sdio_cmd53_t. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/wilc_wlan_if.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wlan_if.h b/drivers/staging/wi

[PATCH 1/5] staging: wilc1000: remove typedef from struct sdio_cmd52_t

2016-03-02 Thread Chaehyun Lim
This patch removes typedef from struct sdio_cmd52_t and renames it to sdio_cmd52. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/wilc_sdio.c| 26 +- drivers/staging/wilc1000/wilc_wlan_if.h | 4 ++-- 2 files changed, 15 inse

[PATCH 4/9] staging: wilc1000: rename ReqIEsLen in struct connec_info

2016-02-24 Thread Chaehyun Lim
This patch renames ReqIEsLen to req_ies_len to avoid camelcase. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/host_interface.c | 6 +++--- drivers/staging/wilc1000/wilc_wfi_cfgoperations

[PATCH 9/9] staging: wilc1000: rename u16reason in disconnect_info

2016-02-24 Thread Chaehyun Lim
This patch renames u16reason to reason to remove u16 prefix. There is no need to use prefix to show data type. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/host_interface.c | 4 ++-- d

[PATCH 7/9] staging: wilc1000: rename u16ConnectStatus in struct connect_info

2016-02-24 Thread Chaehyun Lim
This patch renames u16ConnectStatus to status to avoid camelcase. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/host_interface.c | 10 +- drivers/staging/wi

[PATCH 3/9] staging: wilc1000: rename pu8ReqIEs in struct connect_info

2016-02-24 Thread Chaehyun Lim
This patch renames pu8ReqIEs to req_ies to avoid camelcase. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/host_interface.c | 24 +++ drivers/staging/wi

[PATCH 8/9] staging: wilc1000: rename struct tstrDisconnectNotifInfo

2016-02-24 Thread Chaehyun Lim
This patch renames struct tstrDisconnectNotifInfo to disconnect_info to avoid camelcase. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/coreconfigurator.h | 4 ++-- drivers/staging/wilc1000/host_interface.c | 8 drivers/staging/wi

[PATCH 6/9] staging: wilc1000: rename u16RespIEsLen in struct connect_info

2016-02-24 Thread Chaehyun Lim
This patch renames u16RespIEsLen to resp_ies_len to avoid camelcase. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/host_interface.c | 2 +- drivers/staging/wilc1000/wilc_wfi_cfgoperations

[PATCH 2/9] staging: wilc1000: rename au8bssid in struct connect_info

2016-02-24 Thread Chaehyun Lim
This patch renames au8bssid to bssid to remove au8 prefix in struct connect_info. There is no need to use prefix to show data type of this variable. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wi

[PATCH 1/9] staging: wilc1000: rename struct tstrConnectInfo

2016-02-24 Thread Chaehyun Lim
This patch renames struct tstrConnectInfo to connect_info to avoid camelcase and removes typedef. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/coreconfigurator.h | 4 ++-- drivers/staging/wilc1000/host_interface.c | 12 ++-- d

[PATCH 5/7] staging: wilc1000: handle_cfg_param: fix logical continuations

2016-02-22 Thread Chaehyun Lim
This patch fixes logical continuations found by checkpatch CHECK: Logical continuations should be on the previous line Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff

[PATCH 3/7] staging: wilc1000: handle_cfg_param: change data type of wid_cnt

2016-02-22 Thread Chaehyun Lim
This patch changes data type of wid_cnt from u8 to int. This variable uses array index of struct wid_list so that it is better to use int type. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH 7/7] staging: wilc1000: handle_cfg_param: remove unnecessary whitespace

2016-02-22 Thread Chaehyun Lim
This patch removes unnecessary whitespace before a quoted newline found by checkpatch WARNING: unnecessary whitespace before a quoted newline Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH 6/7] staging: wilc1000: handle_cfg_param: fix line over 80 characters

2016-02-22 Thread Chaehyun Lim
This patch fixes line over 80 characters found by checkpatch WARNING: line over 80 characters Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wi

[PATCH 4/7] staging: wilc1000: handle_cfg_param: rename wid_cnt

2016-02-22 Thread Chaehyun Lim
wid_cnt variable is used as indicating array index of struct wid_list. This patch renames wid_cnt to i that makes more readability. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 184 +++--- 1 file chang

[PATCH 1/7] staging: wilc1000: handle_set_mac_address: fix missing blank line after declaration

2016-02-22 Thread Chaehyun Lim
commit 31cc9885e7c7 ("staging: wilc1000: handle_set_mac_address: use kmemdup") introduces a new checkpatch warning, so this patch fixes it. WARNING: Missing a blank line after declarations FILE: drivers/staging/wilc1000/host_interface.c:430: Signed-off-by: Chaehyun Lim <chaehyun.

[PATCH 6/7] staging: wilc1000: handle_set_mac_address: rename result

2016-02-16 Thread Chaehyun Lim
This patch renames result to ret that is used to get return value from wilc_send_config_pkt. It will be changed until all handle_*() function has same variable name as ret. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 8

[PATCH 5/7] staging: wilc1000: handle_set_mac_address: change data type of result

2016-02-16 Thread Chaehyun Lim
result variable gets value from wilc_send_config_pkt that has return value of int. This patch changes data type of result variable to int. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH 7/7] staging: wilc1000: handle_set_mac_address: use netdev_err

2016-02-16 Thread Chaehyun Lim
This patch uses netdev_err instead of PRINT_ER that is a custom debug print. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/d

[PATCH 1/7] staging: wilc1000: handle_set_mac_address: remove debug message of kmalloc failure

2016-02-16 Thread Chaehyun Lim
There is no need to print debug message when kmalloc is failed. This message is redundant. The code already show us that kmalloc is failed. The brace of if statement is remove as well due to have a single statement. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/s

[PATCH 3/7] staging: wilc1000: handle_set_mac_address: use kmemdup

2016-02-16 Thread Chaehyun Lim
This patch replaces kmalloc followed by memcpy with kmemdup. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/s

[PATCH 4/7] staging: wilc1000: handle_set_mac_address: change return type to void

2016-02-16 Thread Chaehyun Lim
When handle_set_mac_address is called in hostIFthread that is a kernel thread, it is not checked return type of this function. This patch changes return type to void and removes a brace of if statement due to have a single statement. Signed-off-by: Chaehyun Lim <chaehyun@gmail.

[PATCH 2/7] staging: wilc1000: handle_set_mac_address: fix kmalloc return error code

2016-02-16 Thread Chaehyun Lim
This patch fix return error code of kmalloc as -ENOMEM instead of -EFAULT. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/d

[PATCH 04/11] staging: wilc1000: rename pu8bssid in struct user_conn_req

2016-02-12 Thread Chaehyun Lim
This patch renames pu8bssid to bssid to remove pu8 prefix in struct user_conn_req. There is no need to use prefix to show data type of this variable. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 30 +++--- d

[PATCH 01/11] staging: wilc1000: rename au8bssid in struct join_bss_param

2016-02-12 Thread Chaehyun Lim
This patch renames au8bssid to bssid to remove au8 prefix in struct join_bss_param. There is no need to use prefix to show data type of this variable. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 4 ++-- 1 file changed, 2 insertions

[PATCH 06/11] staging: wilc1000: rename u8security in user_conn_req

2016-02-12 Thread Chaehyun Lim
This patch renames u8security to security to remove u8 prefix in struct user_conn_req. There is no need to use prefix to show data type of this variable. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 6 +++--- drivers/staging/wi

[PATCH 07/11] staging: wilc1000: define a new local variable in wilc_scan

2016-02-12 Thread Chaehyun Lim
struct scan_info is defined as a new local variable in wilc_scan function. It makes some assignment short as well as improve more readability. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 31 --- 1 file c

[PATCH 02/11] staging: wilc1000: rename au8bssid in struct found_net_info

2016-02-12 Thread Chaehyun Lim
This patch renames au8bssid to bssid to remove au8 prefix. There is no need to use prefix to show data type of this variable. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 8 drivers/staging/wilc1000/host_interface.h | 2 +- 2

[PATCH 05/11] staging: wilc1000: rename pu8ssid in struct user_conn_req

2016-02-12 Thread Chaehyun Lim
This patch renames pu8ssid to ssid to remove pu8 prefix in struct user_conn_req. There is no need to use prefix to show data type of this variable. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 22 +++--- drivers/s

[PATCH 08/11] staging: wilc1000: change handle_set_channel's return type to void

2016-02-12 Thread Chaehyun Lim
When handle_set_channel is called in hostIFthread that is a kernel thread, it is not checked return type of this function. This patch changes return type to void and removes braces if statement due to have a single statement. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- d

[PATCH 09/11] staging: wilc1000: change data type of result variable to int.

2016-02-12 Thread Chaehyun Lim
result variable gets value from wilc_send_config_pkt that has return value of int. This patch changes data type of result variable to int. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH 03/11] staging: wilc1000: rename s8rssi in struct found_net_info

2016-02-12 Thread Chaehyun Lim
This patch renames s8rssi to rssi to remove s8 prefix in struct found_net_info. There is no need to use prefix to show data type of this variable. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 6 +++--- drivers/staging/wi

[PATCH 10/11] staging: wilc1000: rename result in handle_set_channel

2016-02-12 Thread Chaehyun Lim
This patch renames result to ret that is used to get return value from wilc_send_config_pkt. Some handle_*() function are used as result, others are used as ret. It will start to rename as ret in all handle_*() function to sync up with this variable name. Signed-off-by: Chaehyun Lim <chaeh

[PATCH 11/11] staging: wilc1000: use netdev_err instead of PRINT_ER

2016-02-12 Thread Chaehyun Lim
This patch uses netdev_err instead of PRINT_ER that is a custom debug print. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/d

[PATCH V2 2/4] staging: wilc1000: use int type for counter variable

2016-02-10 Thread Chaehyun Lim
counter is used as for-loop control variable and indicating index of struct wid array so that it is better to use int type. There is no need to set to 0 when it is declared at the top of this function. It is initialized as 0 in for-loop statement. Signed-off-by: Chaehyun Lim <chaeh

[PATCH V2 4/4] staging: wilc1000: rename counter in wilc_send_config_pkt

2016-02-10 Thread Chaehyun Lim
This patch renames the name of counter variable to i. This change makes more readability because wilc_send_config_pkt has a similar argument name as count. Signed-off-by: Chaehyun Lim <chaehyun@gmail.com> --- v2: rebase latest staging-testing drivers/staging/wilc1000/wilc_wlan.

  1   2   3   4   5   6   7   >