HID: lenovo: Sync Fn-lock state on button press for Compact and TrackPoint II keyboards
authorValdikSS <iam@valdikss.org.ru>
Sun, 13 Feb 2022 21:49:23 +0000 (22:49 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 2 May 2022 15:49:44 +0000 (17:49 +0200)
commita0a5c2a696990520eba366fae67573306641b93b
treed5d309a431c755687b8a717c787781d8320057df
parent24401f291dcc4f2c18b9e2f65763cbaadc7a1528
HID: lenovo: Sync Fn-lock state on button press for Compact and TrackPoint II keyboards

When Fn-Esc is pressed on the keyboard, it emits the scancode which could
be used to sync the fn_lock sysfs state.

Previously fn_lock only allowed to set new Fn-lock state and did not
keep the value in sync upon Fn-Esc press, which is now fixed.

Signed-off-by: Florian Klink <flokli@flokli.de>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-lenovo.c