mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: akpm@google.com, kernel@vger.kernel.org, dtor@mail.ru,
	linux-input@atrey.karlin.mff.cuni.cz
Subject: Keyboard CapsShift Lock
Date: Tue, 14 Aug 2007 11:00:23 +0200	[thread overview]
Message-ID: <20070814090023.GB3344@implementation.labri.fr> (raw)

Hi,

There exists a CapsShift lock called KG_CAPSSHIFT, but no associated
lock/slock, here is a patch.

Samuel

Add CapsShift lock and slock.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>

diff --git a/include/linux/keyboard.h b/include/linux/keyboard.h
index d97066f..61f12d4 100644
--- a/include/linux/keyboard.h
+++ b/include/linux/keyboard.h
@@ -426,6 +426,7 @@ extern int unregister_keyboard_notifier(struct notifier_block *nb);
 #define K_SHIFTRLOCK	K(KT_LOCK,KG_SHIFTR)
 #define K_CTRLLLOCK	K(KT_LOCK,KG_CTRLL)
 #define K_CTRLRLOCK	K(KT_LOCK,KG_CTRLR)
+#define K_CAPSSHIFTLOCK	K(KT_LOCK,KG_CAPSSHIFT)
 
 #define K_SHIFT_SLOCK	K(KT_SLOCK,KG_SHIFT)
 #define K_CTRL_SLOCK	K(KT_SLOCK,KG_CTRL)
@@ -435,8 +436,9 @@ extern int unregister_keyboard_notifier(struct notifier_block *nb);
 #define K_SHIFTR_SLOCK	K(KT_SLOCK,KG_SHIFTR)
 #define K_CTRLL_SLOCK	K(KT_SLOCK,KG_CTRLL)
 #define K_CTRLR_SLOCK	K(KT_SLOCK,KG_CTRLR)
+#define K_CAPSSHIFT_SLOCK	K(KT_SLOCK,KG_CAPSSHIFT)
 
-#define NR_LOCK		8
+#define NR_LOCK		9
 
 #define K_BRL_BLANK     K(KT_BRL, 0)
 #define K_BRL_DOT1      K(KT_BRL, 1)

                 reply	other threads:[~2007-08-14  9:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070814090023.GB3344@implementation.labri.fr \
    --to=samuel.thibault@ens-lyon.org \
    --cc=akpm@google.com \
    --cc=dtor@mail.ru \
    --cc=kernel@vger.kernel.org \
    --cc=linux-input@atrey.karlin.mff.cuni.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome