Re: [PATCH v2 0/2] HID: lenovo-go: clean up USB assumption
From: Benjamin Tissoires
Date: Thu May 21 2026 - 13:21:26 EST
On Fri, 15 May 2026 14:57:38 +0000, Louis Clinckx wrote:
> These drivers' id_tables only match HID_USB_DEVICE() entries and the
> code freely assumes a USB transport (to_usb_interface() on hdev->dev.parent,
> endpoint access in raw_event). Make the assumption explicit at probe and
> drop a NULL check that the compiler-level definition of to_usb_interface()
> makes unreachable.
>
> No functional change for the supported (USB) devices.
>
> [...]
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git (for-7.1/upstream-fixes), thanks!
[1/2] HID: lenovo-go: reject non-USB transports in probe
https://git.kernel.org/hid/hid/c/2ee7e632405b
[2/2] HID: lenovo-go: drop dead NULL check on to_usb_interface()
https://git.kernel.org/hid/hid/c/da7f96a68c39
Cheers,
--
Benjamin Tissoires <bentiss@xxxxxxxxxx>