Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2933aa51 authored by José Expósito's avatar José Expósito Committed by Greg Kroah-Hartman
Browse files

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: default avatarJosé Expósito <jose.exposito89@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a6252398
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -389,7 +389,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;