HID: lenovo: Merge tpkbd and cptkbd data structures
authorHans de Goede <hdegoede@redhat.com>
Sat, 4 Jul 2020 13:27:38 +0000 (15:27 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 7 Jul 2020 10:42:26 +0000 (12:42 +0200)
commitb72cdfa824243f8da7b7c4503844cd0d2f9fae09
tree0d2f9e62272caad8c3f8bf8c3f1bc5598b6bceb2
parenta789d5f8a99a366778a6e42b3700a246244201a6
HID: lenovo: Merge tpkbd and cptkbd data structures

Merge the tpkbd and cptkbd data structures, into a single unified
structure instead of having a separate data structure per keyboard type.

This is a preparation patch for making the tpkbd LED functions more
generic, so that they can be re-used for supporting the LEDs on the
Thinkpad 10 ultrabook keyboard.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-lenovo.c