diff options
author | Dmitry Torokhov <[email protected]> | 2022-01-17 23:26:22 -0800 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2022-02-14 10:51:07 +0100 |
commit | 8399bd01026eab803d6ebb5372cf28b5e1f335f8 (patch) | |
tree | ecc435793ce2ce4ac9dc444b0fecb8a945a27598 /lib/mpi/mpi-sub-ui.c | |
parent | dbe0dd5fd2e0c687ad50fc590d5a90400f26adcc (diff) |
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 <[email protected]>
Tested-by: Benjamin Tissoires <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions