From f889ad1bc71949ea2aa2136b18e3afc2181fd71c Mon Sep 17 00:00:00 2001 From: Ondrej Jirman 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