瀏覽代碼

Input: ns558 - make pnp device ids constant

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>
Márton Németh 15 年之前
父節點
當前提交
35c4b918a6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/input/gameport/ns558.c

+ 1 - 1
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+ */