OSDN Git Service

HID: lg-g15: Add a lg_g15_handle_lcd_menu_keys() helper function
authorHans de Goede <hdegoede@redhat.com>
Fri, 16 Apr 2021 13:13:19 +0000 (15:13 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 5 May 2021 12:39:24 +0000 (14:39 +0200)
commitba3e054e7a70d447aa95883dab87a4eae641d6bc
tree93667511fad7e0965e1ebebbcbfa590a716d800c
parent042d05b2e30e8a2bb378ecb668a85790dce39355
HID: lg-g15: Add a lg_g15_handle_lcd_menu_keys() helper function

Factor out the handling of the G15 LCD menu keys out of
lg_g15_event() into a new lg_g15_handle_lcd_menu_keys() helper function.

This is a preparation patch for adding support for the LCD menu
keys on the Logitech Z-10 speakers (with LCD) which use the same
funky HID report format.

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