diff options
author | José Expósito <jose.exposito89@gmail.com> | 2021-11-18 08:29:53 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-01-27 09:04:23 +0100 |
commit | d523705994ade775455f468fef017203cf935dd1 (patch) | |
tree | e824130a3307fc07df8e8fe1d8f374acba3625d0 /drivers/hid | |
parent | f04a1562728f85167360e8e44a14e11a49cc21f2 (diff) | |
download | linux-stable-d523705994ade775455f468fef017203cf935dd1.tar.gz linux-stable-d523705994ade775455f468fef017203cf935dd1.tar.bz2 linux-stable-d523705994ade775455f468fef017203cf935dd1.zip |
HID: apple: Do not reset quirks when the Fn key is not found
[ Upstream commit a5fe7864d8ada170f19cc47d176bf8260ffb4263 ]
When a keyboard without a function key is detected, instead of removing
all quirks, remove only the APPLE_HAS_FN quirk.
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-apple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c index 4e3dd3f55a96..80ecbf14d3c8 100644 --- a/drivers/hid/hid-apple.c +++ b/drivers/hid/hid-apple.c @@ -392,7 +392,7 @@ static int apple_input_configured(struct hid_device *hdev, if ((asc->quirks & APPLE_HAS_FN) && !asc->fn_found) { hid_info(hdev, "Fn key not found (Apple Wireless Keyboard clone?), disabling Fn key handling\n"); - asc->quirks = 0; + asc->quirks &= ~APPLE_HAS_FN; } return 0; |