]> git.baikalelectronics.ru Git - kernel.git/commit
HID: lg-g15: Add a lg_g15_init_input_dev() helper function
authorHans de Goede <hdegoede@redhat.com>
Fri, 16 Apr 2021 13:13:20 +0000 (15:13 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 5 May 2021 12:39:24 +0000 (14:39 +0200)
commite8e28966ee98ae060e20796b350f55076d6dfc7a
treee7916de1e650399387ba318094d8f5ef76d2bab7
parentcaf1c7146858a96ac94c8a4eba68729f7583e0e4
HID: lg-g15: Add a lg_g15_init_input_dev() helper function

Factor the input-device setup + KEY_KBD_LCD_MENU capability setting out
of lg_g15_probe() into a new lg_g15_init_input_dev() helper function.

This is a preparation patch for adding support for the LCD menu
keys + LCD brightness control on the Logitech Z-10 speakers (with LCD)
which use the same protocol as the G15 keyboards.

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