HID: i2c-hid: no longer need raw access to HID descriptor structure
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 18 Jan 2022 07:26:27 +0000 (23:26 -0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 14 Feb 2022 09:52:29 +0000 (10:52 +0100)
commit551117c52237e7d92bc050df961b6a63e86c5bcd
tree74da7920043d30bc3366400297cc4c4dd4c1afaf
parent86fc3fd28157b6d4d044bdc00b3ee72899e554fc
HID: i2c-hid: no longer need raw access to HID descriptor structure

We can stop defining a union for HID descriptor data as we now only access
individual members of it by names and using proper types instead of
accessing by offset from the beginning of the data structure.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Tested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/i2c-hid/i2c-hid-core.c