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>
This commit is contained in:
parent
680de741e8
commit
b4f8ce07b5
|
@ -2309,6 +2309,8 @@ static void hidpp_overwrite_name(struct hid_device *hdev, bool use_unifying)
|
||||||
* Ask the receiver for its name.
|
* Ask the receiver for its name.
|
||||||
*/
|
*/
|
||||||
name = hidpp_get_unifying_name(hidpp);
|
name = hidpp_get_unifying_name(hidpp);
|
||||||
|
else if (hidpp->protocol_major < 2)
|
||||||
|
return;
|
||||||
else
|
else
|
||||||
name = hidpp_get_device_name(hidpp);
|
name = hidpp_get_device_name(hidpp);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue