HID: i2c-hid: use "struct i2c_hid" as argument in most calls
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 18 Jan 2022 07:26:19 +0000 (23:26 -0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 14 Feb 2022 09:51:07 +0000 (10:51 +0100)
commitd34c6105499bd0c3861c4a514bb7d953b851bc91
treefb2406622e7ab5e323c79f27a39254ed47a7ef2f
parenta5e5e03e94764148a01757b2fa4737d3445c13a6
HID: i2c-hid: use "struct i2c_hid" as argument in most calls

The main object in the driver is struct i2c_hid so it makes more sense
to pass it around instead of passing i2c_client and then fetching
i2c_hid associated with it.

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