Commit f0ffc807 authored by Iusico Maxim's avatar Iusico Maxim Committed by Greg Kroah-Hartman
Browse files

HID: lenovo: Restrict F7/9/11 mode to compact keyboards only



commit 9327e3ee upstream.

Commit 2f2bd7cb ("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: 2f2bd7cb ("hid: lenovo: Resend all settings on reset_resume for compact keyboards")
Signed-off-by: default avatarIusico Maxim <iusico.maxim@libero.it>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8a89e9c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment