Граф коммитов

549101 Коммитов

Автор SHA1 Сообщение Дата
Aybuke Ozdemir 960819a1e5 Staging: wilc1000: fix spelling mistake.
This patch corrects the spelling of the word function by adding missing
letter.
Problem found by checkpatch.pl :
CHECK: 'funcion' may be misspelled - perhaps 'function'?

Signed-off-by: Aybuke Ozdemir <aybuke.147@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 11:01:46 +01:00
Shraddha Barke 281dd5ac14 Staging: wilc1000: host_interface: Replace memset with eth_zero_addr
Use eth_zero_addr to assign the zero address to the given address
array instead of memset when second argument is address of zero.

The Coccinelle patch used -

// <smpl>
@eth_zero_addr@
expression e;
@@

-memset(e,0x00,ETH_ALEN);
+eth_zero_addr(e);
// </smpl>

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:59:17 +01:00
Shraddha Barke bcf0265384 Staging: wilc1000: wilc_wfi_cfgoperations: Replace memset with eth_zero_addr
Use eth_zero_addr to assign the zero address to the given address
array instead of memset when second argument is address of zero.

The Coccinelle patch used -

// <smpl>
@eth_zero_addr@
expression e;
@@

-memset(e,0x00,ETH_ALEN);
+eth_zero_addr(e);
// </smpl>

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:59:17 +01:00
Chaehyun Lim 8a3c033262 staging: wilc1000: remove unnecessary parentheses in host_int_remove_wep_key
This patch removes unnecessary parentheses in host_int_remove_wep_key
found by checkpatch.

CHECK: Unnecessary parentheses around wfi_drv->hSemTestKeyBlock
FILE: drivers/staging/wilc1000/host_interface.c:4320:

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:33 +01:00
Chaehyun Lim 4929affee3 staging: wilc1000: fix NULL comparison in host_int_remove_wep_key
This patch fixes NULL comparison style in host_int_remove_wep_key found
by checkpatch.

CHECK: Comparison to NULL could be written "!wfi_drv"
FILE: drivers/staging/wilc1000/host_interface.c:4300

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:33 +01:00
Chaehyun Lim 0c694d829c staging: wilc1000: remove multiple blank in host_int_remove_wep_key
This patch removes multiple blank in host_int_remove_wep_key found by
checkpatch.

CHECK: Please don't use multiple blank lines
FILE: drivers/staging/wilc1000/host_interface.c:4299:
FILE: drivers/staging/wilc1000/host_interface.c:4309:
FILE: drivers/staging/wilc1000/host_interface.c:4315:

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:33 +01:00
Chaehyun Lim 754d8c9016 staging: wilc1000: remove pstrWFIDrv in host_int_remove_key
This patch remove pstrWFIDrv in host_int_remove_key. There is no need to
make another variable to check if first argument is NULL or not.
It is able to use wfi_drv directly that is first argument of this
function.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:33 +01:00
Chaehyun Lim 9e5e8b44bc staging: wilc1000: rename s32Error in host_int_remove_wep_key
This patch replaces s32Error with result in host_int_remove_wep_key to
avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:33 +01:00
Chaehyun Lim 517af2f582 staging: wilc1000: rename u8keyIdx in host_int_remove_wep_key
This patch replaces u8keyIdx with index that is secondard argument of
host_int_remove_wep_key to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:33 +01:00
Chaehyun Lim c54a9fb849 staging: wilc1000: rename hWFIDrv in host_int_remove_wep_key
This patch replaces hWFIDrv with wfi_drv that is first argument of
host_int_remove_wep_key to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:33 +01:00
Chaehyun Lim 33e8ce215a staging: wilc1000: fix return type of host_int_remove_wep_key
This patch changes return type of host_int_remove_wep_key from s32 to
int. s32Error gets return value from wilc_mq_send that has return type
of int. It should be changed return type by int as well as data type of
s32Error.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:33 +01:00
Chaehyun Lim 23fdedfcca staging: wilc1000: remove host_int_test_set_int_wid
This function is defined but never used anywhere,
so just delete it.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:24 +01:00
Chaehyun Lim 2c28293b48 staging: wilc1000: delete multiple blank lines
This patch deletes multiple blank lines found by checkpatch

CHECK: Please don't use multiple blank lines
FILE: drivers/staging/wilc1000/host_interface.c:5393:

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:24 +01:00
Chaehyun Lim 49fb6f714c staging: wilc1000: rename u32mode in host_int_set_operation_mode
This patch replaces u32mode with mode that is second argument of
host_int_set_operation_mode to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:24 +01:00
Chaehyun Lim 230819267c staging: wilc1000: rename hWFIDrv in host_int_set_operation_mode
This patch replaces hWFIDrv with wfi_drv that is first argument of
host_int_set_operation_mode to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:24 +01:00
Chaehyun Lim a0c1ee0cb9 staging: wilc1000: rename s32Error in host_int_set_operation_mode
This patch replaces s32Error with result to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:24 +01:00
Chaehyun Lim d491ef72be staging: wilc1000: fix return type of host_int_set_operation_mode
This patch changes return type of host_int_set_operation_mode from s32
to int. s32Error gets return value from wilc_mq_send that has return
type of int. It should be changed return type by int as well as data
type of s32Error.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:24 +01:00
Chaehyun Lim 3c5f3e5ad1 staging: wilc1000: rename u32address in host_int_set_wfi_drv_handler
This patch replaces u32address with address to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:24 +01:00
Chaehyun Lim a094101cdc staging: wilc1000: rename s32Error in host_int_set_wfi_drv_handler
This patch replaces s32Error with result to avoid camelcase.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:24 +01:00
Chaehyun Lim 909cccd952 staging: wilc1000: remove multiple blank lines
This patch removes multiple blank lines found by checkpatch

CHECK: Please don't use multiple blank lines
FILE: drivers/staging/wilc1000/host_interface.c:5343:
FILE: drivers/staging/wilc1000/host_interface.c:5372:
FILE: drivers/staging/wilc1000/host_interface.c:5389:

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:24 +01:00
Chaehyun Lim 8f7f06cffb staging: wilc1000: fix return type of host_int_set_wfi_drv_handler
This patch changes return type of host_int_set_wfi_drv_handler from s32
to int. s32Error gets return value from wilc_mq_send that has return
type of int. It should be changed return type by int as well as data
type of s32Error.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:58:24 +01:00
Leo Kim 2a02a3415c staging: wilc1000: host_interface.c : remove unused functions
This patch removes unused functions from the host_interface.c(h).
 - Switch_Log_Terminal
 - Handle_DelBASession
 - host_int_addBASession

This patch includes the removal of the comment for host_int_addBASession
as well.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim feea5c4121 staging: wilc1000: remove unused functions
This patch removes unused functions.
 - drivers/staging/wilc1000/linux_mon.c : WILC_WFI_mon_setup
 - drivers/staging/wilc1000/wilc_sdio.o : sdio_set_func0_csa_address_byte0

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim e4bc3d677e staging: wilc1000: wilc_wfi_cfgoperations.c : remove unused functions
This patch removes unused functions from the wilc_wfi_cfgoperations.c.
 - WILC_WFI_dump_survey
 - WILC_WFI_auth
 - WILC_WFI_assoc
 - WILC_WFI_deauth
 - WILC_WFI_disassoc
 - WILC_WFI_set_bitrate_mask

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim fc1848acb9 staging: wilc1000: rename tWILCpfRemainOnChanReady
This patch renames tWILCpfRemainOnChanReady to wilc_remain_on_chan_ready.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim fdc22a49b1 staging: wilc1000: rename tWILCpfRemainOnChanExpired
This patch renames tWILCpfRemainOnChanExpired to wilc_remain_on_chan_expired.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim 430a78cf77 staging: wilc1000: remove typedef from CURRENT_TX_RATE_T
This patch remove typedef from the enum CURRENT_TX_RATE_T.
And rename it to CURRENT_TXRATE.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim 073b8d0ca7 staging: wilc1000: remove typedef from SITE_SURVEY_T
This patch remove typedef from the enum SITE_SURVEY_T.
And rename it to SITESURVEY.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim 9529650a55 staging: wilc1000: remove typedef from tstrCfgParamVal
This patch removes typedef from the struct tstrCfgParamVal.
And rename it to cfg_param_val.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim cd1e6cb4c9 staging: wilc1000: remove typedef from tstrHostIFpmkid
This patch removes typedef from the struct tstrHostIFpmkid.
And rename it to host_if_pmkid.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim a949f9095d staging: wilc1000: remove typedef from tstrHostIFpmkidAttr
This patch removes typedef from the struct tstrHostIFpmkidAttr.
And rename it to host_if_pmkid_attr.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim 4372d3d3c9 staging: wilc1000: remove typedef from tstrHostIFwpaAttr
This patch removes typedef from the struct tstrHostIFwpaAttr.
And rename it to host_if_wpa_attr.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim c276c44aac staging: wilc1000: remove typedef from tstrHostIFwepAttr
This patch removes typedef from the struct tstrHostIFwepAttr.
And rename it to host_if_wep_attr.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim 40cc2c90ad staging: wilc1000: remove typedef from tuniHostIFkeyAttr
This patch remove typedef from the union tuniHostIFkeyAttr.
And rename it to host_if_key_attr.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim b9d963333d staging: wilc1000: remove typedef from tenuKeyType
This patch remove typedef from the enum tenuKeyType.
And rename it to KEY_TYPE.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim 841dfc428d staging: wilc1000: remove typedef from AUTHTYPE_T
This patch removes typedef from the enum AUTHTYPE_T.
And, rename it to AUTHTYPE.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim b6ab85fe61 staging: wilc1000: rename tWILCpfConnectResult
This patch renames tWILCpfConnectResult to wilc_connect_result.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim 607db44794 staging: wilc1000: remove typedef from tstrHiddenNetwork
This patch removes typedef from the struct tstrHiddenNetwork.
And, rename it to hidden_network.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Leo Kim ba1d1a695e staging: wilc1000: rename tWILCpfScanResult
This patch renames tWILCpfScanResult to wilc_scan_result.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:56:03 +01:00
Tony Cho b0c1e80e42 staging: wilc1000: rename strHostIFDelAllSta
This patch renames strHostIFDelAllSta to del_all_sta_info to avoid
CamelCase naming convention.

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:52:45 +01:00
Tony Cho e60831e974 staging: wilc1000: rename pUserData
This patch renames pUserData to data to avoid CamelCase naming
convention.

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:52:45 +01:00
Tony Cho 5c4008dba7 staging: wilc1000: rename strHostIfRegisterFrame
This patch renames strHostIfRegisterFrame to reg_frame to avoid
CamelCase naming convention.

Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:52:45 +01:00
Chaehyun Lim 792fb25b1b staging: wilc1000: return error code directly in host_int_set_mac_chnl_num
There is no need to pass the error code to the variable 'result'.
Just return the error directly when error occurs.
Return 0 at the end of this function when error is not happened.

Suggested-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:52:45 +01:00
Chaehyun Lim 157da215b5 staging: wilc1000: remove pstrWFIDrv in host_int_set_mac_chnl_num
This patch removes pstrWFIDrv variable in host_int_set_mac_chnl_num
function. There is no need to make another variable to check if first
arugment is NULL or not.
It is able to use wfi_drv directly that is first argument of
this function.

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:52:45 +01:00
Ksenija Stanojevic 367e8560e8 Staging: fbtbt: Replace timespec with ktime_t
struct timespec will overflow in year 2038, so replace it with
ktime_t. And replace functions that use struct timespec,
timespec_sub with ktime_sub. Also use monotonic time instead of real
time, by replacing getnstimeofday with ktime_get, to be more robust
against leap seconds and settimeofday() calls.

Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:50:27 +01:00
Shraddha Barke f60c265159 Staging: speakup: Use ARRAY_SIZE macro
ARRAY_SIZE is more concise to use when the size of an array is divided
by the size of its type or the size of its first element.

Changes made using Coccinelle-

@@
type T;
T[] E;
@@

- (sizeof(E)/sizeof(T))
+ ARRAY_SIZE(E)

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:50:27 +01:00
Ioana Ciornei f34b77ec86 staging: rdma: amso1100: remove label indentation
Remove label indentation to follow kernel coding style

Signed-off-by: Ioana Ciornei <ciorneiioana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:50:27 +01:00
Amitoj Kaur Chawla 2136c81fd9 staging: vt6656: Remove space before closing brace
Remove space before closing brace '}'. Problem found using
checkpatch.pl
CHECK: Blank lines aren't necessary before a close brace '}'

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:50:27 +01:00
Amitoj Kaur Chawla 1df7e0a10b staging: vt6656: Remove space after opening brace
Remove space after opening brace '{'. Problem found using
checkpatch.pl
CHECK: Blank lines aren't necessary after an open brace '{'

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:50:27 +01:00
Punit Vara cbe396fbac Staging: rtl8712: rtl8712_hal.h: Coding style warnings fix for block comments
This is patch to the rtl8712_hal.h file that fixes up following warning
reported by checkpatch.pl :

-Block comments use a trailing */ on a separate line

Signed-off-by: Punit Vara <punitvara@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-08 10:34:50 +01:00