aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-08-17staging: wilc1000: remove DECLARE_WILC_BUFFER()Raphaël Beamonte1-6/+3
It was just a wrapper to initialize a variable. Initialize it directly instead. Signed-off-by: Raphaël Beamonte <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-17staging: wilc1000: remove void function return statements that are not usefulRaphaël Beamonte5-13/+1
Signed-off-by: Raphaël Beamonte <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-17staging: wilc1000: coreconfigurator.c: fix kmalloc error checkChaehyun Lim1-4/+14
It is added and fixed error check when kmalloc is failed. Signed-off-by: Chaehyun Lim <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-17staging: wilc1000: coreconfigurator.c: use kmalloc instead of WILC_MALLOCChaehyun Lim1-5/+6
The kmalloc is used to handle host interface message within kernel thread. The manipulation of host interface message is not called on IRQ context and I could not find any spinlock inside function. Signed-off-by: Chaehyun Lim <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-17staging: wilc1000: remove unused codes of gps8ConfigPacketChaehyun Lim1-15/+0
This patch removes unused codes of gps8ConfigPacket declared by global variable. It is allocated and freed memory within CoreConfiguratorInit and CoreConfiguratorDeInit. There is no used anywhere except within two functions. Signed-off-by: Chaehyun Lim <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-17staging: wilc1000: remove unnecessary void pointer castChaehyun Lim4-55/+55
This patch removes unnecessary void pointer cast of WILC_MALLOC. Signed-off-by: Chaehyun Lim <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-17staging: wilc1000: remove WILC_NEW and WILC_NEW_EXChaehyun Lim1-15/+0
This patch removes WILC_NEW and WILC_NEW_EX defines that are not used anywhere. Signed-off-by: Chaehyun Lim <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-17staging: wilc1000: use kmalloc instead of WILC_NEWChaehyun Lim1-1/+1
WILC_NEW is replaced by kmallo with GFP_ATOMIC. This kmalloc is inside a spin_lock_irqsave region. Signed-off-by: Chaehyun Lim <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-17staging: wilc1000: Process WARN, INFO options of debug levels from userChandra S Gorentla1-16/+8
This patch enables setting the module's debug options WARN and INFO in the debugfs file 'wilc_debug_level'. This functionality allows the user to enable logging of warnings and other information. Before this change, writes to this debugfs file set only one option - DEBUG. Another option that is enabled by default is ERR. As a side effect, this patch removes the 'sparse' warning - 'warning: incorrect type in argument 2 (different address spaces)'. Signed-off-by: Chandra S Gorentla <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-17staging: wilc1000: remove unneeded tstrWILC_MsgQueueAttrs typedefGreg Kroah-Hartman3-95/+61
No one uses it, so remove it and all of the NULL parameters being used to pass it into the msg code. Cc: Johnny Kim <[email protected]> Cc: Rachel Kim <[email protected]> Cc: Dean Lee <[email protected]> Cc: Chris Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-17staging: wilc1000: delete wilc_osconfig.hGreg Kroah-Hartman2-10/+0
This .h file isn't needed at all, so delete it, and the one line that added it to the build. Cc: Johnny Kim <[email protected]> Cc: Rachel Kim <[email protected]> Cc: Dean Lee <[email protected]> Cc: Chris Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-17staging: wilc1000: delete wilc_log.hGreg Kroah-Hartman3-52/+0
The macros are not used in the driver at all, except in one commented out line, so just remove the .h file so that no one thinks it is a good idea to add any code to use them in the future. Cc: Johnny Kim <[email protected]> Cc: Rachel Kim <[email protected]> Cc: Dean Lee <[email protected]> Cc: Chris Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-17staging: wilc1000: delete wilc_timer.hGreg Kroah-Hartman2-53/+0
It is no longer needed at all, so remove this header file. Cc: Johnny Kim <[email protected]> Cc: Rachel Kim <[email protected]> Cc: Dean Lee <[email protected]> Cc: Chris Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-17staging: wilc1000: remove WILC_TimerStart()Greg Kroah-Hartman5-48/+25
It was a wrapper around mod_timer() so replace it with the real timer call and remove wilc_timer.c as it's now empty. Cc: Johnny Kim <[email protected]> Cc: Rachel Kim <[email protected]> Cc: Dean Lee <[email protected]> Cc: Chris Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: remove WILC_TimerCreate()Greg Kroah-Hartman3-44/+17
It was just a wrapper around setup_timer() and could never fail, so just call the real function, and fix up the function arguments of the callbacks to be proper timer callback functions. Cc: Johnny Kim <[email protected]> Cc: Rachel Kim <[email protected]> Cc: Dean Lee <[email protected]> Cc: Chris Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: remove WILC_TimerDestroy()Greg Kroah-Hartman4-39/+10
It was just a wrapper around del_timer_sync() so call that instead. Cc: Johnny Kim <[email protected]> Cc: Rachel Kim <[email protected]> Cc: Dean Lee <[email protected]> Cc: Chris Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: remove WILC_TimerStop()Greg Kroah-Hartman5-43/+12
It was just a wrapper around del_timer() so call that instead. Cc: Johnny Kim <[email protected]> Cc: Rachel Kim <[email protected]> Cc: Dean Lee <[email protected]> Cc: Chris Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: remove tstrWILC_TimerAttrs typedefGreg Kroah-Hartman5-67/+45
It was not used for anything, so remove it, and the variables in wilc_timer.c that were being passed of its type. Cc: Johnny Kim <[email protected]> Cc: Rachel Kim <[email protected]> Cc: Dean Lee <[email protected]> Cc: Chris Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: remove WILC_TimerHandle typedefGreg Kroah-Hartman7-20/+16
Use the proper structure (struct timer_list) instead, which makes things much more readable. Cc: Johnny Kim <[email protected]> Cc: Rachel Kim <[email protected]> Cc: Dean Lee <[email protected]> Cc: Chris Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: remove WILC_Sleep()Greg Kroah-Hartman6-47/+6
It was just a wrapper around usleep_range() so call that directly instead and remove the now-empty file. Cc: Johnny Kim <[email protected]> Cc: Rachel Kim <[email protected]> Cc: Dean Lee <[email protected]> Cc: Chris Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: remove commented out WILC_Sleep callsGreg Kroah-Hartman2-3/+0
It's not being called, so delete these lines. Cc: Johnny Kim <[email protected]> Cc: Rachel Kim <[email protected]> Cc: Dean Lee <[email protected]> Cc: Chris Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: vt6655: Replace typedef struct tagSTxDescMalcolm Priestley6-38/+39
Replace with struct vnt_tx_desc with all members the same. volatile is removed from pointers as this generates warning message. Only the first four members of vnt_tx_desc need to be volatile. Signed-off-by: Malcolm Priestley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: vt6655: replace typedef struct tagDEVICE_TD_INFO and structureMalcolm Priestley4-33/+33
Create struct vnt_td_info with members mic_hdr skb buf buf_dma dwReqCount -> req_count byFlags -> flags In struct tagSTxDesc volatile is removed because it will generate a warning (in any case this member is not) and renaming td_info. Signed-off-by: Malcolm Priestley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: vt6655: struct tagDEVICE_TD_INFO remove dwHeaderLengthMalcolm Priestley2-2/+0
dwHeaderLength is assigned a value but that is never used. Remove variable. Signed-off-by: Malcolm Priestley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: vt6655: struct tagDEVICE_TD_INFO resize dwReqCount.Malcolm Priestley3-3/+3
dwReqCount is no bigger than u16 Signed-off-by: Malcolm Priestley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: vt6655: replaced typedef struct tagTDES1Malcolm Priestley2-12/+10
Create struct vnt_tdes1 that replaces members wReqCount -> req_count byTCR -> tcr byReserved -> reserved Signed-off-by: Malcolm Priestley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: vt6655: desc.h replace typedef struct tagTDES0Malcolm Priestley3-29/+19
create struct vnt_tdes0 replacing used members byTSR0 -> tsr0 byTSR1 -> tsr1 f1Owner -> owner Narrowing endian differences to inside structure. Signed-off-by: Malcolm Priestley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: delete wilc_type.hGreg Kroah-Hartman3-36/+2
The .h file isn't needed at all, so just remove it. Cc: Johnny Kim <[email protected]> Cc: Rachel Kim <[email protected]> Cc: Dean Lee <[email protected]> Cc: Chris Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: remove WILC_MemoryFreeGreg Kroah-Hartman2-42/+0
It's no longer needed, so remove the empty wrapper function. Cc: Johnny Kim <[email protected]> Cc: Rachel Kim <[email protected]> Cc: Dean Lee <[email protected]> Cc: Chris Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: remove WILC_FREE_IF_TRUE macroGreg Kroah-Hartman2-33/+10
Just use kfree, as that's all it resolves itself to. Cc: Johnny Kim <[email protected]> Cc: Rachel Kim <[email protected]> Cc: Dean Lee <[email protected]> Cc: Chris Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14Staging: sm750fb: Fix "foo* bar" should be "foo *bar" errorsYash Shah4-14/+14
Fix "foo* bar" should be "foo *bar" errors as detected by checkpatch.pl Signed-off-by: Yash Shah <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: rtl8188eu: fix possible NULL dereferenceSudip Mukherjee1-4/+4
dm_odm was being checked for NULL after dereferencing it. Lets check for NULL first before derefenrencing it. Signed-off-by: Sudip Mukherjee <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: clarify the argument typeJohnny Kim2-41/+41
This patch replaces the void pointer type in the host interface functions which process the message from host thread by the real data type, tstrWILC_WFIDrv because the void pointer type as the arguments is not clear and concise. In addition, typecasting to the void pointer type is removed becasue it is not necessary. Signed-off-by: Johnny Kim <[email protected]> Signed-off-by: Tony Cho <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: change void pointer type to real typeJohnny Kim1-1/+1
This patch changes the void pointer member of the tstrHostIFmsg to the real data type because the void pointer type is ambiguous and not readable. Signed-off-by: Johnny Kim <[email protected]> Signed-off-by: Tony Cho <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: replace WILC_WFIDrvHandle by tstrWILC_WFIDrvJohnny Kim5-136/+136
The structure, WILC_WFIDrvHandle is used to save the pointer address for the driver handler which is used throughout the driver but it's not easy to understand what it means. In addition, it doesn't support the 64 bit machine and also causes the warnings for the 64 bit build. This patch replaces the WILC_WFIDrvHandle by the tstrWILC_WFIDrv because the tstrWILC_WFIDrv is real structure to represent the driver handler and reduces the 64 bit compile warnings. Also, typecasting to WILC_WFIDrvHandle is not needed by using tstrWILC_WFIDrv as is. Signed-off-by: Johnny Kim <[email protected]> Signed-off-by: Tony Cho <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: remove WILC_FREEChaehyun Lim1-5/+0
Remove WILC_FREE that is replaced by kfree. Signed-off-by: Chaehyun Lim <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: use kfree instead of WILC_FREEChaehyun Lim5-86/+86
Use kfree instead of WILC_FREE. Signed-off-by: Chaehyun Lim <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: remove unused memory functionsChaehyun Lim2-78/+0
This patch remove unused memory functions because some macros with this memory function are deleted. Signed-off-by: Chaehyun Lim <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: wilc1000: wilc_memory.h: remove unused defineChaehyun Lim1-51/+0
Remove unused define macro that is never used. Signed-off-by: Chaehyun Lim <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14Staging: gdm72xx: usb_ids: fix a macro coding style errorRaphaël Beamonte1-1/+5
Fix a macro with complex value coding style error. Signed-off-by: Raphaël Beamonte <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: rtl8192e: Fix log spamming in rtl8192_hard_data_xmitMateusz Kulikowski1-2/+2
This patch fixes issue generated by commit ca93dcba3a92 ("staging: rtl8192e: Remove assert() macro") One negation was missed in conversion, therefore asserted message was always printed. For 1MB file downloaded via http, ~500 messages were generated. Signed-off-by: Mateusz Kulikowski <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: vme: devices: add spaces around '-'Junsu Shin1-4/+4
This is a patch to the vme_pio2_core.c that adds spaces around '-'. Signed-off-by: Junsu Shin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: vme: devices: fix NULL comparison styleJunsu Shin1-2/+2
This is a patch to vme_pio2_core.c that fixes up the NULL comparison style. Signed-off-by: Junsu Shin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: vme: devices: remove blank line after open braceJunsu Shin1-2/+0
This is a patch to the vme_pio2_core.c that removes blank line after open brace '{'. Signed-off-by: Junsu Shin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: vme: devices: remove multiple blank linesJunsu Shin1-4/+0
This is a patch to vm2_pio2_core.c that removes multiple blanks lines. Signed-off-by: Junsu Shin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: unisys: make visorbus_dev_groups staticMichał Kępień1-1/+1
visorbus_dev_groups is not referenced outside visorbus_main.c, so it can be declared static. Found using sparse. Signed-off-by: Michał Kępień <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14drivers: staging: unisys: add MODULE_DEVICE_TABLE and temporary MODULE_ALIAS ↵Prarit Bhargava1-0/+9
lines to visornic This patch adds an module alias and a MODULE_DEVICE_TABLE to autoload the visornic driver when an appropriate device is created by the visorbus. Note, the correct way of fixing this is adding functionality to scripts/mod/file2alias.c for the visorbus bus type. Signed-off-by: Prarit Bhargava <[email protected]> Signed-off-by: Benjamin Romer <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: rtl8192u: Remove unnecessary externsJoe Perches7-223/+236
Using 'extern' is not necessary for function prototypes. Miscellanea: o Reflow alignments Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: mt29f_spinand: Remove unnecessary externsJoe Perches1-2/+2
Using 'extern' is not necessary for function prototypes. Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-08-14staging: dgnc: Remove unnecessary externsJoe Perches1-8/+8
Using 'extern' is not necessary for function prototypes. Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>