aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2007-11-04 00:41:12 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2008-01-21 01:11:06 -0500
commitf4f37c8ec7d2491c8885c890ba74254b9adfbeee (patch)
treeecd4cb10af7fd7aa4fb02fe2a106608e9d64c3fe /include
parent554101e3e5f396b987c846332863a3fcdc87b1d6 (diff)
Input: Add proper locking when changing device's keymap
Take dev->event_lock to make sure that we don't race with input_event() and also force key up event when removing a key from keymap table. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include')
-rw-r--r--include/linux/input.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index 2075d6da2a31..9a963fe97300 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -1309,6 +1309,9 @@ static inline void input_set_abs_params(struct input_dev *dev, int axis, int min
1309 dev->absbit[BIT_WORD(axis)] |= BIT_MASK(axis); 1309 dev->absbit[BIT_WORD(axis)] |= BIT_MASK(axis);
1310} 1310}
1311 1311
1312int input_get_keycode(struct input_dev *dev, int scancode, int *keycode);
1313int input_set_keycode(struct input_dev *dev, int scancode, int keycode);
1314
1312extern struct class input_class; 1315extern struct class input_class;
1313 1316
1314/** 1317/**