summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorPawel Zalewski (The Capable Hub) <pzalewski@thegoodpenguin.co.uk>2026-05-18 17:06:25 +0100
committerBenjamin Tissoires <bentiss@kernel.org>2026-06-01 18:28:41 +0200
commit73e784ddf895416ec03d3760300f6050324cfe52 (patch)
tree2a3641b9313014470d8742b54bde6b02f0819bbe /scripts/Makefile.thinlto
parent4de4b8a5ddc2c5a2e0f62c72864caab7027ea67a (diff)
HID: hid-cypress: clean up usage of 'driver_data'
The module is storing an integer inside the drvdata pointer, which is confusing - furthermore this integer is mutable. When its value is changed it is set again using the 'hid_set_drvdata' API within the 'cp_event' function. Let's fix this, create and allocate the 'cp_device' struct that is then set as the drvdata and then simply use its integer 'quirks' field for storing the quirks, which shall make the code cleaner, type-safe, consistent and more readable. This makes the cast to (void *) during storage unnecessary and the cast to (unsigned long) during retrieval is also removed. Signed-off-by: Pawel Zalewski (The Capable Hub) <pzalewski@thegoodpenguin.co.uk> Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions