]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] kd.h
authorAndries E. Brouwer <andries.brouwer@cwi.nl>
Sat, 4 May 2002 04:56:39 +0000 (21:56 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 4 May 2002 04:56:39 +0000 (21:56 -0700)
Andrej Lajovic observes that in kd.h the definitions of K_NUMLOCK and
K_CAPSLOCK are interchanged.  He is right (and this is the case since
1.1.54; nobody noticed because setleds.c does not use these defines).
So, here is the fix.  No kernel behaviour is changed.

include/linux/kd.h

index c717c1981a353ef4e3997565be36d38c81092d89..2461c05be5a195d5a022851fc6e7d47599c4265a 100644 (file)
@@ -26,8 +26,8 @@ struct consolefontdesc {
 #define KDGETLED       0x4B31  /* return current led state */
 #define KDSETLED       0x4B32  /* set led state [lights, not flags] */
 #define        LED_SCR         0x01    /* scroll lock led */
-#define        LED_CAP         0x04    /* caps lock led */
 #define        LED_NUM         0x02    /* num lock led */
+#define        LED_CAP         0x04    /* caps lock led */
 
 #define KDGKBTYPE      0x4B33  /* get keyboard type */
 #define        KB_84           0x01
@@ -89,10 +89,10 @@ struct unimapinit {
 #define KDSKBMETA      0x4B63  /* sets meta key handling mode */
 
 #define                K_SCROLLLOCK    0x01
-#define                K_CAPSLOCK      0x02
-#define                K_NUMLOCK       0x04
+#define                K_NUMLOCK       0x02
+#define                K_CAPSLOCK      0x04
 #define        KDGKBLED        0x4B64  /* get led flags (not lights) */
-#define KDSKBLED       0x4B65  /* set led flags (not lights) */
+#define        KDSKBLED        0x4B65  /* set led flags (not lights) */
 
 struct kbentry {
        unsigned char kb_table;