mirror of
https://github.com/armbian/build.git
synced 2025-08-14 15:16:58 +02:00
* Recycling of megous v5.16.4 patches The patches were sorted as far as possible. Some patches are renamed according to their place of application. The length of the patch name has been changed to improve readability using the `git format-patch --filename-max-length=75` method. The folder containing the patches will have the name `patches.name` and the corresponding file `series.name` for the convenience of processing and moving them upstream. But the control file remains `series.conf`. Signed-off-by: The-going <48602507+The-going@users.noreply.github.com> * Add a series of armbian patches for 5.16 Signed-off-by: The-going <48602507+The-going@users.noreply.github.com> * Remove patches whose fixes are already in the kernel Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
42 lines
1.5 KiB
Diff
42 lines
1.5 KiB
Diff
From f96e7688541b600424f5be09e6c63b1a7a369c7f Mon Sep 17 00:00:00 2001
|
|
From: Ondrej Jirman <megous@megous.com>
|
|
Date: Fri, 28 Jan 2022 16:53:46 +0100
|
|
Subject: [PATCH 319/446] input: kb151: Allow to disable FN layer handling
|
|
|
|
This is temporary patch to ease transition for handling Fn+... via
|
|
keymaps in userspace. Fn layer support may be removed from the
|
|
driver in the future.
|
|
|
|
Signed-off-by: Ondrej Jirman <megous@megous.com>
|
|
---
|
|
drivers/input/keyboard/kb151.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/input/keyboard/kb151.c b/drivers/input/keyboard/kb151.c
|
|
index 491c01dfd..453eee273 100644
|
|
--- a/drivers/input/keyboard/kb151.c
|
|
+++ b/drivers/input/keyboard/kb151.c
|
|
@@ -86,6 +86,10 @@ 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),
|
|
@@ -237,7 +241,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) {
|
|
+ if (keymap[code] == KEY_FN && !disable_fn_layer) {
|
|
dev_dbg(&client->dev, "FN is now %s\n",
|
|
pressed ? "pressed" : "released");
|
|
kb151->fn_state = pressed;
|
|
--
|
|
2.31.1
|
|
|