HID: uclogic: Refactor UGEE v2 frame initialization
authorJosé Expósito <jose.exposito89@gmail.com>
Mon, 15 Aug 2022 14:29:51 +0000 (16:29 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 25 Aug 2022 08:26:31 +0000 (10:26 +0200)
commit86402296784f656427245edd0546cac39d410b07
tree57e1183acd4604d679cece3f908ac504e2cd0aa9
parenta64cbf3ce63122168e1edb3eb1eb1cf7781ae230
HID: uclogic: Refactor UGEE v2 frame initialization

At the moment, the driver only supports UGEE v2 devices that have
buttons in their frames.

In order to support other types of frames in the future, move the code
used to initialize this kind of frames to its own function.

Tested-by: Jouke Witteveen <j.witteveen@gmail.com>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-uclogic-params.c