]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
HID: logitech-dj: Differentiate "invalid device index" error
authorBastien Nocera <hadess@hadess.net>
Sun, 25 Jan 2026 12:12:01 +0000 (13:12 +0100)
committerJiri Kosina <jkosina@suse.com>
Mon, 2 Feb 2026 12:47:56 +0000 (13:47 +0100)
We had 2 codepaths throwing the "invalid device index" error, but one of
them was about the index not matching the receiver, so change the error
to "invalid receiver index".

Signed-off-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-logitech-dj.c

index 44b7166975104496c926ccf37e93135fe70b42d7..e728f00f5bdc5192d09f1978488509beac8c4601 100644 (file)
@@ -1664,7 +1664,7 @@ static int logi_dj_dj_event(struct hid_device *hdev,
                 * so ignore those reports too.
                 */
                if (dj_report->device_index != DJ_RECEIVER_INDEX)
-                       hid_err(hdev, "%s: invalid device index:%d\n",
+                       hid_err(hdev, "%s: invalid receiver index:%d\n",
                                __func__, dj_report->device_index);
                return false;
        }