Commit Graph

455218 Commits

Author SHA1 Message Date
navin patidar
b9c74f3196 staging: rtl8188eu: Remove function _rtw_writeN()
_rtw_writeN() is a wrapper function, being used to call usb_writeN().
Call usb_writeN() directly and drop _rtw_writeN().

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:34:01 -07:00
navin patidar
3f5d24dcfa staging: rtl8188eu: Instead of intf_hdl pass adapter in read & write functions
intf_hdl is passed in usb_[read,write][8,16,32]() functions, which
is then passed to vender_request() there it's used to get adapter pointer,
so instead of passing intf_hdl we can directly pass adapter.

This change will also help in removing rtw_[read,write][8,16,32]() wrapper
functions being used to call usb_[read,write][8,16,32]() functions.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:34:01 -07:00
navin patidar
6de25d0543 staging: rtl8188eu: rtw_io.h: Remove unused function declarations
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:34:01 -07:00
navin patidar
dc955bcee4 staging: rtl8188eu: rtw_io.c: Remove unused function _rtw_write_port_and_wait()
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:34:01 -07:00
navin patidar
b478184745 staging: rtl8188eu: rtw_io.c: Remove unused function _rtw_write32_async()
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:34:01 -07:00
navin patidar
006fe32c3e staging: rtl8188eu: rtw_io.c: Remove unused function rtw_write16_async()
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:34:01 -07:00
navin patidar
c18e8c482d staging: rtl8188eu: rtw_io.c: Remove unused function _rtw_write8_async()
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:34:01 -07:00
navin patidar
fb98c8a132 staging: rtl8188eu: rtw_io.h: Remove unused members from struct _io_ops
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:32:11 -07:00
navin patidar
1408d08c57 staging: rtl8188eu: rtw_io.h: Remove unused macros
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:32:11 -07:00
navin patidar
6f33b2e1fd staging: rtl8188eu: HalPhyRf_8188e.c: Remove unnecessary comments
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:32:10 -07:00
navin patidar
ef027d5749 staging: rtl8188eu: HalPhyRf_8188e.c: Remove unused macro
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:32:10 -07:00
navin patidar
38f946783b staging: rtl8188eu: rtw_io.h: Remove unused structures
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:32:10 -07:00
navin patidar
15b4159d74 staging: rtl8188eu: Remove unused function declaration and macro
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:32:10 -07:00
navin patidar
b14b9575e1 staging: rtl8188eu: Remove unused function _rtw_write_mem()
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:32:10 -07:00
navin patidar
4c9df71487 staging: rtl8188eu: Remove unused funtion _rtw_read_mem()
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:32:10 -07:00
navin patidar
e86ebe3542 staging: rtl8188eu: Remove unused struct intf_priv
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:32:10 -07:00
navin patidar
95311b478f staging: rtl8188eu:Move rtw_hw_[suspend, resume]() to rtw_pwrctrl.c
rtw_hw_[suspend,resume]() functions are used only in rtw_pwrctrl.c,
so move these functions there.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:32:10 -07:00
navin patidar
418f96424f staging: rtl8188eu: Remove rtw_init_intf_priv()
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:32:10 -07:00
navin patidar
f0e7a514e1 staging: rtl8188eu: Remove rtw_deinit_intf_priv()
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:32:10 -07:00
navin patidar
a6ec8f29f1 staging: rtl8188eu: usb_halinit.c: Remove ReadAdapterInfo8188EU()
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:32:10 -07:00
Rickard Strandqvist
084c7593b0 staging: rtl8188eu: os_dep: usb_intf.c: Cleaning up unnecessary code
Removes unnecessary code that does not do anything useful.

This was partly found using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:31:05 -07:00
navin patidar
e844e6d5b3 staging: rtl8188eu: Remove function with empty defination()
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:04 -07:00
navin patidar
5aaa47f36f staging: rtl8188eu: Remove unused function nat25_handle_frame()
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:04 -07:00
navin patidar
8843d7a4bc staging: rtl8188eu: Remove bCardDisableWOHSM from struct adapter
driver doesn't use value stored in bCardDisableWOHSM.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:04 -07:00
navin patidar
f3dd77bc44 staging: rtl8188eu: Remove pbuddy_adapter from struct adapter
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:03 -07:00
navin patidar
24e0bf42ec staging: rtl8188eu:Remove EepromAddressSize from struct adapter
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:03 -07:00
navin patidar
525c688039 staging: rtl8188eu: Remove unused member variable of struct adapter
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:03 -07:00
navin patidar
51b19bca51 staging: rtl8188eu: Remove hal_data_sz from struct adapter
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:03 -07:00
navin patidar
b95cb41596 staging: rtl8188eu: Remove unused function rtl8188e_clone_haldata()
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:03 -07:00
navin patidar
84c2a1e374 staging: rtl8188eu: Remove DriverState from struct adapter
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:03 -07:00
navin patidar
451f8742a2 staging: rtl8188eu: Remove enum driver_state
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:03 -07:00
navin patidar
b1f4e0ae99 staging: rtl8188eu: Remove unused enum _IFACE_TYPE
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:03 -07:00
navin patidar
ac674ad89e staging: rtl8188eu: Remove unused enum _ADAPTER_TYPE
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:03 -07:00
navin patidar
9864d792ad staging: rtl8188eu: Remove usb_alloc_vendor_req_buf from struct dvobj_priv
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:03 -07:00
navin patidar
cf14b08083 staging: rtl8188eu: Remove usb_suspend_sema from struct dvobj_priv
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:03 -07:00
navin patidar
5b485232e6 staging: rtl8188eu: Remove unused members of struct dvobj_priv
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:03 -07:00
navin patidar
4ff3c250cb staging: rtl8188eu: Remove unused enum
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:03 -07:00
navin patidar
701accdc48 staging: rtl8188eu: Remove unused stucture defination struct specific_device_id
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:02 -07:00
navin patidar
5e2b1f1514 staging: rtl8188eu: Remove function declarations in usb_intf.c
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:02 -07:00
navin patidar
774cce1ebc staging: rtl8188eu: Use module_usb_driver() macro
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:02 -07:00
navin patidar
591207d9bf staging: rtl8188eu: Remove struct rtw_usb_drv
struct rtw_usb_drv contains only one member usb_driver structure,
so no use of keeping it.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:02 -07:00
navin patidar
7922fd1a5c staging : rtl8188eu: Remove drv_registered from struct rtw_usb_drv
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:02 -07:00
navin patidar
c824795caf staging: rtl8188eu: Use unregistering flag from struct usb_interface
Use unregistering flag from struct usb_interface to find
driver registration status.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:02 -07:00
navin patidar
fc8b5ae9aa staging: rtl8188eu: Remove hw_init_mutex from struct rtw_usb_drv
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:02 -07:00
navin patidar
fdc9537474 staging: rtl8188eu: Remove header file rtw_version.h
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:02 -07:00
navin patidar
91d1662438 staging :rtl8188eu: Remove HalPhyRf.[h|c] files.
Move ODM_GetRightChnlPlaceforIQK() from HalPhyRf.c to HalPhyRf_8188e.c.
Move ODM_TARGET_CHNL_NUM_2G_5G from HalPhyRf.h to HalPhyRf_8188e.h.
After the movement of function and macro HalPhyRf.[h|c] files are redundant.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:02 -07:00
navin patidar
06bfa97eb7 staging: rtl8188eu: Remove function with empty defination ODM_ResetIQKResult()
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:30:02 -07:00
navin patidar
109709e142 staging: rtl8188eu: Remove usb_vendor_req.h header file
driver doesn't need usb_vendor_req.h.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:28:50 -07:00
navin patidar
5fd702b2ea staging: rtl8188eu: Remove unused function declaration
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:28:50 -07:00
navin patidar
52519d3085 staging: rtl8188eu: Remove Hal8188EReg.h file
Driver doesn't need Hal8188EReg.h file.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 15:28:50 -07:00