projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
680de74
)
HID: logitech-hidpp: do not query the name through HID++ for 1.0 devices
author
Benjamin Tissoires
<benjamin.tissoires@redhat.com>
Mon, 27 Mar 2017 14:59:24 +0000
(16:59 +0200)
committer
Jiri 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
patch
|
blob
|
history
diff --git
a/drivers/hid/hid-logitech-hidpp.c
b/drivers/hid/hid-logitech-hidpp.c
index 1cda29ec0efdfb2f6c50a280acd5b9b288318f8b..4031405ac191d8bc83e9948ff32934aa72f26fc1 100644
(file)
--- 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);