OSDN Git Service

Input: egalax_ts - make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Wed, 7 May 2014 20:08:53 +0000 (13:08 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 May 2014 23:39:59 +0000 (16:39 -0700)
Make of_device_id array const, because all OF functions handle it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/egalax_ts.c

index e6bcb13..c805784 100644 (file)
@@ -262,7 +262,7 @@ static int egalax_ts_resume(struct device *dev)
 
 static SIMPLE_DEV_PM_OPS(egalax_ts_pm_ops, egalax_ts_suspend, egalax_ts_resume);
 
-static struct of_device_id egalax_ts_dt_ids[] = {
+static const struct of_device_id egalax_ts_dt_ids[] = {
        { .compatible = "eeti,egalax_ts" },
        { /* sentinel */ }
 };