Input: mms114 - make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Wed, 7 May 2014 20:09:52 +0000 (13:09 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 May 2014 23:40:00 +0000 (16:40 -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/mms114.c

index 8a598c065391dd3a483453be18f1e59e7ca068ea..9d83413bbba7372f169351284a63cd34a7c3526c 100644 (file)
@@ -570,7 +570,7 @@ static const struct i2c_device_id mms114_id[] = {
 MODULE_DEVICE_TABLE(i2c, mms114_id);
 
 #ifdef CONFIG_OF
-static struct of_device_id mms114_dt_match[] = {
+static const struct of_device_id mms114_dt_match[] = {
        { .compatible = "melfas,mms114" },
        { }
 };