base-usb: fix non-unifying for linux 5.2
Signed-off-by: Filipe Laíns <lains@archlinux.org>
This commit is contained in:
parent
6b14004a6f
commit
966c55e69d
|
@ -23,15 +23,14 @@
|
||||||
from __future__ import absolute_import, division, print_function, unicode_literals
|
from __future__ import absolute_import, division, print_function, unicode_literals
|
||||||
|
|
||||||
|
|
||||||
_UNIFYING_DRIVER = 'logitech-djreceiver'
|
_DRIVER = ('hid-generic', 'generic-usb', 'logitech-djreceiver')
|
||||||
_GENERIC_DRIVER = ('hid-generic', 'generic-usb')
|
|
||||||
|
|
||||||
|
|
||||||
# each tuple contains (vendor_id, product_id, usb interface number, hid driver)
|
# each tuple contains (vendor_id, product_id, usb interface number, hid driver)
|
||||||
_unifying_receiver = lambda product_id: (0x046d, product_id, 2, _UNIFYING_DRIVER)
|
_unifying_receiver = lambda product_id: (0x046d, product_id, 2, _DRIVER)
|
||||||
_nano_receiver = lambda product_id: (0x046d, product_id, 1, _GENERIC_DRIVER)
|
_nano_receiver = lambda product_id: (0x046d, product_id, 1, _DRIVER)
|
||||||
_lenovo_receiver = lambda product_id: (0x17ef, product_id, 1, _GENERIC_DRIVER)
|
_lenovo_receiver = lambda product_id: (0x17ef, product_id, 1, _DRIVER)
|
||||||
_lightspeed_receiver = lambda product_id: (0x046d, product_id, 2, _GENERIC_DRIVER)
|
_lightspeed_receiver = lambda product_id: (0x046d, product_id, 2, _DRIVER)
|
||||||
|
|
||||||
# standard Unifying receivers (marked with the orange Unifying logo)
|
# standard Unifying receivers (marked with the orange Unifying logo)
|
||||||
UNIFYING_RECEIVER_C52B = _unifying_receiver(0xc52b)
|
UNIFYING_RECEIVER_C52B = _unifying_receiver(0xc52b)
|
||||||
|
@ -57,7 +56,7 @@ NANO_RECEIVER_6042 = _lenovo_receiver(0x6042)
|
||||||
LIGHTSPEED_RECEIVER_C539 = _lightspeed_receiver(0xc539)
|
LIGHTSPEED_RECEIVER_C539 = _lightspeed_receiver(0xc539)
|
||||||
LIGHTSPEED_RECEIVER_C53a = _lightspeed_receiver(0xc53a)
|
LIGHTSPEED_RECEIVER_C53a = _lightspeed_receiver(0xc53a)
|
||||||
|
|
||||||
del _unifying_receiver, _nano_receiver
|
del _DRIVER, _unifying_receiver, _nano_receiver, _lenovo_receiver, _lightspeed_receiver
|
||||||
|
|
||||||
|
|
||||||
ALL = (
|
ALL = (
|
||||||
|
|
Loading…
Reference in New Issue