Skip to content

Commit

Permalink
HID: apple: Do not reset quirks when the Fn key is not found
Browse files Browse the repository at this point in the history
[ 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 <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
JoseExposito authored and gregkh committed Jan 27, 2022
1 parent e6ad399 commit 3396b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,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;
Expand Down

0 comments on commit 3396b7c

Please sign in to comment.