]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
staging: ks7010: Factor out common members in request structs.
authorQuytelda Kahja <quytelda@tamalin.org>
Fri, 23 Mar 2018 05:07:41 +0000 (22:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Mar 2018 14:58:32 +0000 (15:58 +0100)
commit6024089f0bdad0695a54b32f2c498b2a1ae63c66
tree3699d03d263755e58c888fbe57dbcc0cc9725e13
parent20e9cb0a646c08918ee509ac55376bc3d436c0e1
staging: ks7010: Factor out common members in request structs.

Most of the request structures defined in ks_hostif.h have common
members:
* __le16 phy_type;
* __le16 cts_mode;
* __le16 scan_type;
* __le16 capability;
* struct rate_set16_t rate_set;

Factor out these members into a common substructure of type
'hostif_request_t'.  This allows a large portion of the request
initialization code in ks_hostif.c to be factored out into the
'init_request' function.

Signed-off-by: Quytelda Kahja <quytelda@tamalin.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c
drivers/staging/ks7010/ks_hostif.h