HID: use generic driver for Logitech Unifying receivers if !CONFIG_HID_LOGITECH_DJ
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Mon, 13 Feb 2012 10:13:03 +0000 (14:13 +0400)
committerJiri Kosina <jkosina@suse.cz>
Tue, 21 Feb 2012 15:00:31 +0000 (16:00 +0100)
Before commit 534a7b8e1 ("HID: Add full support for Logitech Unifying
receivers") Logitech Unifying receiver can work as generic device
without special driver, after that commit these devices does not works
without special driver.

After this patch they will use generic driver if special driver is disabled.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig
drivers/hid/hid-core.c

index 0a55866f1f74552ccc47f4836362d3e247eac082..1e6b78ed5ac9acac2c9a6ca889ba875693b6612e 100644 (file)
@@ -257,7 +257,9 @@ config HID_LOGITECH_DJ
        ---help---
        Say Y if you want support for Logitech Unifying receivers and devices.
        Unifying receivers are capable of pairing up to 6 Logitech compliant
-       devices to the same receiver.
+       devices to the same receiver. Without this driver it will be handled by
+       generic USB_HID driver and all incomming events will be multiplexed
+       into a single mouse and a single keyboard device.
 
 config LOGITECH_FF
        bool "Logitech force feedback support"
index e89e4c7360c64a4f29617cdd06e632d1f7c3bbbc..549c7538e57f1ac764ef4c69e7cbbfad7ccaf5bd 100644 (file)
@@ -1463,8 +1463,10 @@ static const struct hid_device_id hid_have_special_driver[] = {
        { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_DFGT_WHEEL) },
        { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G25_WHEEL) },
        { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G27_WHEEL) },
+#if IS_ENABLED(CONFIG_HID_LOGITECH_DJ)
        { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_UNIFYING_RECEIVER) },
        { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_UNIFYING_RECEIVER_2) },
+#endif
        { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_WII_WHEEL) },
        { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_RUMBLEPAD2) },
        { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_SPACETRAVELLER) },