linux/drivers/staging/ks7010
Tobin C. Harding 11ce16da7b staging: ks7010: add hostif_generic_request()
Driver contains duplicate code. Host interface has numerous request
functions which allocate memory for a request header. Each request
header is different but all contain, as the first member, a hostif_hdr
structure. This structure has size and event members which need to be
set. By defining a helper function to allocate the memory and set the
initial hostif_hdr members code duplication is reduced.

Add function to allocate  memory for a host interface request. Set
'size' and 'event' members. Remove duplicate code using newly defined
function.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-04-28 11:47:26 +02:00
..
eap_packet.h staging: ks7010: remove magic numbers 2017-04-28 11:45:49 +02:00
Kconfig staging: ks7010: remove custom firmware loader 2016-06-07 22:42:53 -07:00
ks7010_sdio.c staging: ks7010: fix checkpatch SPLIT_STRING 2017-04-18 13:47:31 +02:00
ks7010_sdio.h staging: ks7010: add struct comment to ks_sdio_card 2017-04-18 13:47:31 +02:00
ks_hostif.c staging: ks7010: add hostif_generic_request() 2017-04-28 11:47:26 +02:00
ks_hostif.h staging: ks7010: fix complete_handler 2017-04-18 13:33:17 +02:00
ks_wlan_ioctl.h staging: ks7010: add parentheses to complex macro 2017-03-14 06:20:57 +08:00
ks_wlan_net.c staging: ks7010: fix complete_handler 2017-04-18 13:33:17 +02:00
ks_wlan.h staging: ks7010: move hw info into dev private data 2017-04-18 13:47:31 +02:00
Makefile staging: ks7010: remove cfg file handling 2016-06-18 19:45:55 -07:00
michael_mic.c staging: ks7010: fix checkpatch SPACING 2017-03-21 08:52:33 +01:00
michael_mic.h staging: ks7010: fix spelling of Michael MIC 2017-03-14 08:04:51 +08:00
TODO staging: ks7010: add task to TODO file 2017-04-11 16:05:51 +02:00