summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@chromium.org>2026-02-24 00:25:55 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-02-24 00:43:16 +0300
commit3d35d41169d000f4fbf3c23999b8443e1173efce (patch)
tree27bd1f123b6e6a80c586dcea602018956e1aa601 /include/linux
parentde716275941af60247967887be3303e144ed57d7 (diff)
downloadlinux-3d35d41169d000f4fbf3c23999b8443e1173efce.tar.xz
Input: export input_default_setkeycode
Export input_default_setkeycode so that a driver can set a custom setkeycode handler to take some driver specific action but still call the default handler at some point. Signed-off-by: Fabio Baltieri <fabiobaltieri@chromium.org> Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org> Link: https://patch.msgid.link/20260222003717.471977-1-dmitry.torokhov@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/input.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index 7d7cb0593a63..06ca62328db1 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -517,6 +517,10 @@ INPUT_GENERATE_ABS_ACCESSORS(res, resolution)
int input_scancode_to_scalar(const struct input_keymap_entry *ke,
unsigned int *scancode);
+int input_default_setkeycode(struct input_dev *dev,
+ const struct input_keymap_entry *ke,
+ unsigned int *old_keycode);
+
int input_get_keycode(struct input_dev *dev, struct input_keymap_entry *ke);
int input_set_keycode(struct input_dev *dev,
const struct input_keymap_entry *ke);