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:
a9844b1
)
Input: ns558 - make pnp device ids constant
author
Márton Németh
<nm127@freemail.hu>
Sun, 10 Jan 2010 07:24:48 +0000
(23:24 -0800)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Sun, 10 Jan 2010 07:29:13 +0000
(23:29 -0800)
The id_table field of the struct pnp_driver is constant in <linux/pnp.h>
so it makes sense to mark pnp_devids also constant.
Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/gameport/ns558.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/input/gameport/ns558.c
b/drivers/input/gameport/ns558.c
index db556b71dddadc609568fbb772f0f6379a20b381..7c217848613ef2a0e2367bf32f36c5b7ed63e1d7 100644
(file)
--- a/
drivers/input/gameport/ns558.c
+++ b/
drivers/input/gameport/ns558.c
@@
-166,7
+166,7
@@
static int ns558_isa_probe(int io)
#ifdef CONFIG_PNP
-static struct pnp_device_id pnp_devids[] = {
+static
const
struct pnp_device_id pnp_devids[] = {
{ .id = "@P@0001", .driver_data = 0 }, /* ALS 100 */
{ .id = "@P@0020", .driver_data = 0 }, /* ALS 200 */
{ .id = "@P@1001", .driver_data = 0 }, /* ALS 100+ */