Re: (subset) [PATCH 00/11] HID: storing pointers in 'hid_device_id::driver_data'

From: Benjamin Tissoires

Date: Mon Jun 01 2026 - 14:36:52 EST


On Mon, 18 May 2026 17:06:19 +0100, Pawel Zalewski (The Capable Hub) wrote:
> The <linux/mod_devicetable.h> has multiple structs that follow
> the pattern of having either 'driver_data' or 'driver_info'
> fields which are of the 'kernel_ulong_t' type. Then how to
> interpret that field is user defined, some users will treat
> the value as an actual integer, others as a valid pointer to
> dereference.
>
> [...]

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git (for-7.2/cleanup_driver_data), thanks!

[05/11] HID: hid-belkin: clean up usage of 'driver_data'
https://git.kernel.org/hid/hid/c/4de4b8a5ddc2
[06/11] HID: hid-cypress: clean up usage of 'driver_data'
https://git.kernel.org/hid/hid/c/73e784ddf895
[07/11] HID: hid-gfrm: clean up usage of 'driver_data'
https://git.kernel.org/hid/hid/c/0b8bb8c3c913
[08/11] HID: hid-ite: clean up usage of 'driver_data'
https://git.kernel.org/hid/hid/c/b11dfa6cc3c8

Cheers,
--
Benjamin Tissoires <bentiss@xxxxxxxxxx>