HID: i2c-hid: create a helper for SET_POWER command
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 18 Jan 2022 07:26:23 +0000 (23:26 -0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 14 Feb 2022 09:51:08 +0000 (10:51 +0100)
commitacb8dd95974dda4b6072410bfe09bc83d2c22d23
treee20780960dd400b2c08a03f1e0b06efeca797467
parent8399bd01026eab803d6ebb5372cf28b5e1f335f8
HID: i2c-hid: create a helper for SET_POWER command

Another case where creating a dedicated helper allows for cleaner code that
shows exactly what communication happens with the device when toggling its
power.

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