HID: lenovo: Restrict F7/9/11 mode to compact keyboards only
authorIusico Maxim <iusico.maxim@libero.it>
Thu, 5 Jun 2025 17:55:50 +0000 (19:55 +0200)
committerJiri Kosina <jkosina@suse.com>
Tue, 10 Jun 2025 19:51:02 +0000 (21:51 +0200)
commit9327e3ee5b077c4ab4495a09b67624f670ed88b6
tree32b6cbe225145f3773fd28e7f1d74c61d94cbce0
parent1a8953f4f7746c6a515989774fe03047c522c613
HID: lenovo: Restrict F7/9/11 mode to compact keyboards only

Commit 2f2bd7cbd1d1 ("hid: lenovo: Resend all settings on reset_resume
for compact keyboards") introduced a regression for ThinkPad TrackPoint
Keyboard II by removing the conditional check for enabling F7/9/11 mode
needed for compact keyboards only. As a result, the non-compact
keyboards can no longer toggle Fn-lock via Fn+Esc, although it can be
controlled via sysfs knob that directly sends raw commands.

This patch restores the previous conditional check without any
additions.

Cc: stable@vger.kernel.org
Fixes: 2f2bd7cbd1d1 ("hid: lenovo: Resend all settings on reset_resume for compact keyboards")
Signed-off-by: Iusico Maxim <iusico.maxim@libero.it>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-lenovo.c