diff options
| author | Pawel Zalewski (The Capable Hub) <pzalewski@thegoodpenguin.co.uk> | 2026-05-18 19:06:27 +0300 |
|---|---|---|
| committer | Benjamin Tissoires <bentiss@kernel.org> | 2026-06-01 19:28:41 +0300 |
| commit | b11dfa6cc3c8dcbe2687c74fe4de9a39a8123d74 (patch) | |
| tree | 06a21dbb4f3a6173d0234a8fe753f0a05840fb17 /include/linux/errqueue.h | |
| parent | 0b8bb8c3c913b11bb1d4d34603212b531ecd8354 (diff) | |
| download | linux-b11dfa6cc3c8dcbe2687c74fe4de9a39a8123d74.tar.xz | |
HID: hid-ite: clean up usage of 'driver_data'
The module is storing an integer inside the drvdata pointer, which is
confusing, lets fix this and set the whole of 'hid_device_id' struct
as the drvdata and then simply use its integer 'driver_data' field for
quirks, which shall make the code cleaner, type-safe, consistent and
more readable.
This makes the cast to (void *) during storage a bit safer (just to
suppress the const qualifier warning) and the cast to (unsigned long)
during retrieval is removed.
Signed-off-by: Pawel Zalewski (The Capable Hub) <pzalewski@thegoodpenguin.co.uk>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions
