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

From
Jiri Kosina <jikos@kernel.org>
Date
2026-11-19 21:42:18
Also in
linux-bluetooth, lkml
Reply to
Dmitry Torokhov, 2026-10-16
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@gmail.com>
---
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@gmail.com (local)
Now in hid.git#for-7.5/hidraw. Thanks, and sorry for the delay.

-- 
Jiri Kosina
SUSE Labs
Thread (8 messages) 8 messages, 2 authors, last reply 14d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help