mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
HID: lenovo: Add middleclick_workaround sysfs knob for cptkbd
[ Upstream commit2814646f76] Previous attempt to autodetect well-behaving patched firmware introduced in commit46a0a2c96f("HID: lenovo: Detect quirk-free fw on cptkbd and stop applying workaround") has shown that there are false-positives on original firmware (on both 1st gen and 2nd gen keyboards) which causes the middle button click workaround to be mistakenly disabled. This commit adds explicit parameter to sysfs to control this workaround. Fixes:46a0a2c96f("HID: lenovo: Detect quirk-free fw on cptkbd and stop applying workaround") Fixes:43527a0094("HID: lenovo: Restrict detection of patched firmware only to USB cptkbd") Signed-off-by: Mikhail Khvainitski <me@khvoinitsky.org> Signed-off-by: Jiri Kosina <jkosina@suse.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
d9f8bbc6d7
commit
d54877c835
1 changed files with 39 additions and 18 deletions
Loading…
Add table
Add a link
Reference in a new issue