Re: [PATCH v2 0/5] HID: hidraw: Encapsulate struct hidraw and make hidraw.h private

From: Jiri Kosina

Date: Thu Nov 19 2026 - 16:42:26 EST


On Fri, 16 Oct 2026, Dmitry Torokhov wrote:

> This series cleans up internal HID core and hidraw header boundaries.
>
> First, internal HID core declarations and unused symbol exports are
> moved out of include/linux/hid.h into a private drivers/hid/hid-core.h
> header. Next, a hidraw_instance() accessor is introduced in
> include/linux/hidraw.h so HID drivers that only need the hidraw minor
> number for naming or debug logging no longer dereference struct hidraw
> directly. After converting the drivers and dropping unused
> linux/hidraw.h includes, hidraw.h is moved to drivers/hid/hidraw.h and
> struct hidraw along with its internal buffer and list structures are
> made private to drivers/hid/hidraw.c.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
> ---
> Changes in v2:
> - Rebased onto latest linux-next (next-20261016) / hid.git for-next
> - Updated hidinput_connect() declaration in drivers/hid/hid-core.h in
> patch 1/5 to use unsigned int connect_mask instead of unsigned int
> force to match upstream changes
> - Link to v1: https://patch.msgid.link/20261014051326.3784498-1-dmitry.torokhov@xxxxxxxxx

Now in hid.git#for-7.5/hidraw. Thanks, and sorry for the delay.

--
Jiri Kosina
SUSE Labs