projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37cdffd
)
HID:usbkbd:mark usb_kbd_keycode array as const
author
Ming Lei
<tom.leiming@gmail.com>
Sun, 8 Jun 2008 08:15:16 +0000
(16:15 +0800)
committer
Jiri Kosina
<jkosina@suse.cz>
Wed, 23 Jul 2008 13:25:21 +0000
(15:25 +0200)
mark it as const because it is read only
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/usbkbd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hid/usbhid/usbkbd.c
b/drivers/hid/usbhid/usbkbd.c
index 3cd46d2e53c1851828b31df4fc85da846381b3b5..6aa8b7e8fb980b60c0ccc19d99e695c0135ba75c 100644
(file)
--- a/
drivers/hid/usbhid/usbkbd.c
+++ b/
drivers/hid/usbhid/usbkbd.c
@@
-43,7
+43,7
@@
MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE(DRIVER_LICENSE);
-static unsigned char usb_kbd_keycode[256] = {
+static
const
unsigned char usb_kbd_keycode[256] = {
0, 0, 0, 0, 30, 48, 46, 32, 18, 33, 34, 35, 23, 36, 37, 38,
50, 49, 24, 25, 16, 19, 31, 20, 22, 47, 17, 45, 21, 44, 2, 3,
4, 5, 6, 7, 8, 9, 10, 11, 28, 1, 14, 15, 57, 12, 13, 26,