diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-02-06 20:22:51 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 07:33:09 +0100 |
commit | f0d4f587eb6dc27ea98737d13b5506b38de76b64 (patch) | |
tree | a972b0eff8e009b2e4ad3cfc24cde47b7f7b7301 /backport/backport-include/linux/usb | |
parent | 7b12c2bd0126e93f2c0d88cbe4f59df1325745be (diff) |
backports: add USB_SPEED_SUPER_PLUS
This will cause a compiler warning in some places, but there's
no really nice way to work around that.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport/backport-include/linux/usb')
-rw-r--r-- | backport/backport-include/linux/usb/ch9.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backport/backport-include/linux/usb/ch9.h b/backport/backport-include/linux/usb/ch9.h index 135e24c6..c343f66a 100644 --- a/backport/backport-include/linux/usb/ch9.h +++ b/backport/backport-include/linux/usb/ch9.h @@ -21,4 +21,8 @@ static inline int usb_endpoint_maxp(const struct usb_endpoint_descriptor *epd) } #endif /* < 3.2 */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,6,0) +#define USB_SPEED_SUPER_PLUS 6 +#endif + #endif /* __BACKPORT__LINUX_USB_CH9_H */ |