HID: logitech-hidpp: do not query the name through HID++ for 1.0 devices
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 27 Mar 2017 14:59:24 +0000 (16:59 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 6 Apr 2017 12:36:37 +0000 (14:36 +0200)
Unless they are connected through unifying, they don't support it,
so remove one error in the logs.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Tested-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-hidpp.c

index 1cda29ec0efdfb2f6c50a280acd5b9b288318f8b..4031405ac191d8bc83e9948ff32934aa72f26fc1 100644 (file)
@@ -2309,6 +2309,8 @@ static void hidpp_overwrite_name(struct hid_device *hdev, bool use_unifying)
                 * Ask the receiver for its name.
                 */
                name = hidpp_get_unifying_name(hidpp);
+       else if (hidpp->protocol_major < 2)
+               return;
        else
                name = hidpp_get_device_name(hidpp);