HID: uclogic: Add support for bitmap dials
authorNikolai Kondrashov <spbnick@gmail.com>
Thu, 14 Apr 2022 11:09:35 +0000 (13:09 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 21 Apr 2022 08:05:48 +0000 (10:05 +0200)
commit2112b49eaa5c5cffc22ddd8b3b09f7d20bf13819
treef0223d00d72a76e595e1fe796ac69fb944c96a6f
parentf25df3532832c93b7857a61266e48fa0ab87bca7
HID: uclogic: Add support for bitmap dials

A bitmap dial sends reports with a dedicated bit per direction: 1 means
clockwise rotation, 2 means counterclockwise, as opposed to the normal
1 and -1 values.

Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-uclogic-core.c
drivers/hid/hid-uclogic-params.h