aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/r8188eu/include/usb_ops.h
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2021-07-29 12:09:26 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-30 10:22:34 +0200
commitefb8bc8683f20c9f80a9b3239934ccc85e7ed59a (patch)
tree4567a1e09b5bd576fa82f0c2d5fa141831e3002a /drivers/staging/r8188eu/include/usb_ops.h
parentstaging: r8188eu: Remove empty header file (diff)
downloadlinux-dev-efb8bc8683f20c9f80a9b3239934ccc85e7ed59a.tar.xz
linux-dev-efb8bc8683f20c9f80a9b3239934ccc85e7ed59a.zip
staging: r8188eu: Remove tests of kernel version
In the GitHub repository from which this driver was derived, old kernels had to be supported. Now that the driver is included in the kernel, this code can be removed as well as all mention of version.h. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Link: https://lore.kernel.org/r/20210729170930.23171-3-Larry.Finger@lwfinger.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/include/usb_ops.h')
-rw-r--r--drivers/staging/r8188eu/include/usb_ops.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/staging/r8188eu/include/usb_ops.h b/drivers/staging/r8188eu/include/usb_ops.h
index 40e834390a10..9e60b3a9a02a 100644
--- a/drivers/staging/r8188eu/include/usb_ops.h
+++ b/drivers/staging/r8188eu/include/usb_ops.h
@@ -4,7 +4,6 @@
#ifndef __USB_OPS_H_
#define __USB_OPS_H_
-#include <linux/version.h>
#include <osdep_service.h>
#include <drv_types.h>
#include <osdep_intf.h>
@@ -22,7 +21,6 @@ enum {
#define MAX_VENDOR_REQ_CMD_SIZE 254 /* 8188cu SIE Support */
#define MAX_USB_IO_CTL_SIZE (MAX_VENDOR_REQ_CMD_SIZE + ALIGNMENT_UNIT)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 12))
#define rtw_usb_control_msg(dev, pipe, request, requesttype, \
value, index, data, size, timeout_ms) \
usb_control_msg((dev), (pipe), (request), (requesttype), (value),\
@@ -30,20 +28,6 @@ enum {
#define rtw_usb_bulk_msg(usb_dev, pipe, data, len, actual_length, timeout_ms) \
usb_bulk_msg((usb_dev), (pipe), (data), (len), \
(actual_length), (timeout_ms))
-#else
-#define rtw_usb_control_msg(dev, pipe, request, requesttype, \
- value, index, data, size, timeout_ms) \
- usb_control_msg((dev), (pipe), (request), (requesttype), \
- (value), (index), (data), (size), \
- ((timeout_ms) == 0) || \
- ((timeout_ms)*HZ/1000 > 0) ? \
- ((timeout_ms)*HZ/1000) : 1)
-#define rtw_usb_bulk_msg(usb_dev, pipe, data, len, \
- actual_length, timeout_ms) \
- usb_bulk_msg((usb_dev), (pipe), (data), (len), (actual_length), \
- ((timeout_ms) == 0) || ((timeout_ms)*HZ/1000 > 0) ?\
- ((timeout_ms)*HZ/1000) : 1)
-#endif
#include <usb_ops_linux.h>
void rtl8188eu_set_hw_type(struct adapter *padapter);