]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit614d34f8b3dba62ff0d13d0d45e3220c2960b17d
treee7916de1e650399387ba318094d8f5ef76d2bab7
parentba3e054e7a70d447aa95883dab87a4eae641d6bc
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