Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4f8ce07 authored by Benjamin Tissoires's avatar Benjamin Tissoires Committed by Jiri Kosina
Browse files

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: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tested-by: default avatarBastien Nocera <hadess@hadess.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 680de741
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);