armbian_build/patch/kernel/archive/sunxi-5.17/patches.megous/Revert-input-kb151-Allow-to-disable-FN-layer-handling.patch
The-going 9ebd3600c6
Sunxi 5.17 (#3687)
* Add 88 new patches to series. tag: orange-pi-5.17-20220409-0454

* Fix the applicability of patches.megous to the v5.17.3 kernel

* Fix series.conf. Disable the patch that is not being applied

* Add support for sun50i-h6-orangepi-3-lts

* Check the applicability in the series

* Move to a patches.armbian folder

* Bananapro: add AXP209 regulators

* fix-gpio-kconfig remove if EXPERT to allow normal build

* sunxi-5.17: Remove unused patches
2022-04-16 18:20:04 +03:00

39 lines
1.4 KiB
Diff

From f889ad1bc71949ea2aa2136b18e3afc2181fd71c Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Sun, 3 Apr 2022 16:16:23 +0200
Subject: [PATCH 532/544] Revert "input: kb151: Allow to disable FN layer
handling"
This reverts commit ce0155f7c168626d83be538ab95feb76881bfcc6.
---
drivers/input/keyboard/kb151.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/input/keyboard/kb151.c b/drivers/input/keyboard/kb151.c
index 453eee2736f6..491c01dfd194 100644
--- a/drivers/input/keyboard/kb151.c
+++ b/drivers/input/keyboard/kb151.c
@@ -86,10 +86,6 @@ static bool disable_input;
module_param(disable_input, bool, S_IRUGO);
MODULE_PARM_DESC(disable_input, "Disable the keyboard part of the driver");
-static bool disable_fn_layer;
-module_param(disable_fn_layer, bool, 0644);
-MODULE_PARM_DESC(disable_fn_layer, "Disable the keyboard's Fn key layer map");
-
static const u32 kb151_default_keymap[] = {
MATRIX_KEY(0, 0, KEY_ESC),
MATRIX_KEY(0, 1, KEY_1),
@@ -241,7 +237,7 @@ static void kb151_update(struct i2c_client *client)
dev_dbg(&client->dev, "row %u col %u %sed\n",
map_row, col, pressed ? "press" : "releas");
- if (keymap[code] == KEY_FN && !disable_fn_layer) {
+ if (keymap[code] == KEY_FN) {
dev_dbg(&client->dev, "FN is now %s\n",
pressed ? "pressed" : "released");
kb151->fn_state = pressed;
--
2.34.1