aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndreas Mohr <andi@rhlx01.fht-esslingen.de>2006-06-05 00:18:00 -0400
committerDmitry Torokhov <dtor_core@ameritech.net>2006-06-05 00:18:00 -0400
commit0f5e560e4523e15f33922de5becd024ccaaff76c (patch)
treed971ef964d249eb670529d2d59a8194a17a8849b /drivers
parent47ce56edb8ecdd4ec2bbec4e8683f3ba91de72e3 (diff)
Input: constify drivers/char/keyboard.c
Signed-off-by: Andreas Mohr <andi@lisas.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/keyboard.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c
index 5755b7e5f18..24f2656000e 100644
--- a/drivers/char/keyboard.c
+++ b/drivers/char/keyboard.c
@@ -672,7 +672,7 @@ static void k_dead2(struct vc_data *vc, unsigned char value, char up_flag, struc
672 */ 672 */
673static void k_dead(struct vc_data *vc, unsigned char value, char up_flag, struct pt_regs *regs) 673static void k_dead(struct vc_data *vc, unsigned char value, char up_flag, struct pt_regs *regs)
674{ 674{
675 static unsigned char ret_diacr[NR_DEAD] = {'`', '\'', '^', '~', '"', ',' }; 675 static const unsigned char ret_diacr[NR_DEAD] = {'`', '\'', '^', '~', '"', ',' };
676 value = ret_diacr[value]; 676 value = ret_diacr[value];
677 k_deadunicode(vc, value, up_flag, regs); 677 k_deadunicode(vc, value, up_flag, regs);
678} 678}
@@ -709,8 +709,8 @@ static void k_cur(struct vc_data *vc, unsigned char value, char up_flag, struct
709 709
710static void k_pad(struct vc_data *vc, unsigned char value, char up_flag, struct pt_regs *regs) 710static void k_pad(struct vc_data *vc, unsigned char value, char up_flag, struct pt_regs *regs)
711{ 711{
712 static const char *pad_chars = "0123456789+-*/\015,.?()#"; 712 static const char pad_chars[] = "0123456789+-*/\015,.?()#";
713 static const char *app_map = "pqrstuvwxylSRQMnnmPQS"; 713 static const char app_map[] = "pqrstuvwxylSRQMnnmPQS";
714 714
715 if (up_flag) 715 if (up_flag)
716 return; /* no action, if this is a key release */ 716 return; /* no action, if this is a key release */
@@ -1035,7 +1035,7 @@ static void kbd_refresh_leds(struct input_handle *handle)
1035#define HW_RAW(dev) (test_bit(EV_MSC, dev->evbit) && test_bit(MSC_RAW, dev->mscbit) &&\ 1035#define HW_RAW(dev) (test_bit(EV_MSC, dev->evbit) && test_bit(MSC_RAW, dev->mscbit) &&\
1036 ((dev)->id.bustype == BUS_I8042) && ((dev)->id.vendor == 0x0001) && ((dev)->id.product == 0x0001)) 1036 ((dev)->id.bustype == BUS_I8042) && ((dev)->id.vendor == 0x0001) && ((dev)->id.product == 0x0001))
1037 1037
1038static unsigned short x86_keycodes[256] = 1038static const unsigned short x86_keycodes[256] =
1039 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 1039 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
1040 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 1040 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
1041 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 1041 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,