Skip to content

Commit 02191c9

Browse files
JoseExpositogregkh
authored andcommitted
HID: apple: Do not reset quirks when the Fn key is not found
[ Upstream commit a5fe786 ] 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>
1 parent 1778882 commit 02191c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-apple.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ static int apple_input_configured(struct hid_device *hdev,
390390

391391
if ((asc->quirks & APPLE_HAS_FN) && !asc->fn_found) {
392392
hid_info(hdev, "Fn key not found (Apple Wireless Keyboard clone?), disabling Fn key handling\n");
393-
asc->quirks = 0;
393+
asc->quirks &= ~APPLE_HAS_FN;
394394
}
395395

396396
return 0;

0 commit comments

Comments
 (0)