summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-logitech-hidpp.c
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2017-03-27 17:59:24 +0300
committerJiri Kosina <jkosina@suse.cz>2017-04-06 15:36:37 +0300
commitb4f8ce07b55fa30b5a8c0d2655f1c5cc4c0b9095 (patch)
tree62eadc4d6d17954d12bba03ba50084f0a4f394ff /drivers/hid/hid-logitech-hidpp.c
parent680de741e835d56e504997b613895058625291e9 (diff)
downloadlinux-b4f8ce07b55fa30b5a8c0d2655f1c5cc4c0b9095.tar.xz
HID: logitech-hidpp: do not query the name through HID++ for 1.0 devices
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>
Diffstat (limited to 'drivers/hid/hid-logitech-hidpp.c')
-rw-r--r--drivers/hid/hid-logitech-hidpp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c
index 1cda29ec0efd..4031405ac191 100644
--- a/drivers/hid/hid-logitech-hidpp.c
+++ b/drivers/hid/hid-logitech-hidpp.c
@@ -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);