summaryrefslogtreecommitdiffstats
path: root/include/linux/keyboard.h
diff options
context:
space:
mode:
authorKarl Dahlke <eklhad@comcast.net>2008-04-15 01:30:32 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2008-04-15 01:30:32 -0400
commit0beb4f6f294b0f2dde07fa9da9c00abd4f9c8b50 (patch)
tree2b1b330a3b836e99ca5be38a5c2923dd319c8936 /include/linux/keyboard.h
parent76d057ce5a48034c97f604a0a25a87093e072c71 (diff)
downloadop-kernel-dev-0beb4f6f294b0f2dde07fa9da9c00abd4f9c8b50.zip
op-kernel-dev-0beb4f6f294b0f2dde07fa9da9c00abd4f9c8b50.tar.gz
Input: put ledstate in the keyboard notifier
Led state should be part of the key event, like shiftstate, and not grabbed asynchronously after the fact. [samuel.thibault@ens-lyon.org: various fixes] Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/keyboard.h')
-rw-r--r--include/linux/keyboard.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/keyboard.h b/include/linux/keyboard.h
index 65c2d70..a3c984d 100644
--- a/include/linux/keyboard.h
+++ b/include/linux/keyboard.h
@@ -33,6 +33,7 @@ struct keyboard_notifier_param {
struct vc_data *vc; /* VC on which the keyboard press was done */
int down; /* Pressure of the key? */
int shift; /* Current shift mask */
+ int ledstate; /* Current led state */
unsigned int value; /* keycode, unicode value or keysym */
};
OpenPOWER on IntegriCloud