Searched hist:"8399 bd01026eab803d6ebb5372cf28b5e1f335f8" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/hid/i2c-hid/ |
H A D | i2c-hid-core.c | diff 8399bd01026eab803d6ebb5372cf28b5e1f335f8 Tue Jan 18 08:26:22 CET 2022 Dmitry Torokhov <dmitry.torokhov@gmail.com> HID: i2c-hid: define i2c_hid_read_register() and use it
Handling simple read of device registers in __i2c_hid_command() makes it too complicated and the need of special handling for the HID descriptor register adds even more complexity. Instead, let's create simple i2c_hid_read_register() helper on base of i2c_hid_xfer() and use 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>
|