Message ID | 023a01cf69d6$6b46beb0$41d43c10$%han@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Am Mittwoch, 7. Mai 2014, 18:26:25 schrieb Jingoo Han: > Make of_device_id array const, because all OF functions > handle it as const. > > Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Heiko Stuebner <heiko@sntech.de> > --- > drivers/input/touchscreen/zforce_ts.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/input/touchscreen/zforce_ts.c > b/drivers/input/touchscreen/zforce_ts.c index 01d30ce..feea85b 100644 > --- a/drivers/input/touchscreen/zforce_ts.c > +++ b/drivers/input/touchscreen/zforce_ts.c > @@ -880,7 +880,7 @@ static struct i2c_device_id zforce_idtable[] = { > MODULE_DEVICE_TABLE(i2c, zforce_idtable); > > #ifdef CONFIG_OF > -static struct of_device_id zforce_dt_idtable[] = { > +static const struct of_device_id zforce_dt_idtable[] = { > { .compatible = "neonode,zforce" }, > {}, > }; -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/input/touchscreen/zforce_ts.c b/drivers/input/touchscreen/zforce_ts.c index 01d30ce..feea85b 100644 --- a/drivers/input/touchscreen/zforce_ts.c +++ b/drivers/input/touchscreen/zforce_ts.c @@ -880,7 +880,7 @@ static struct i2c_device_id zforce_idtable[] = { MODULE_DEVICE_TABLE(i2c, zforce_idtable); #ifdef CONFIG_OF -static struct of_device_id zforce_dt_idtable[] = { +static const struct of_device_id zforce_dt_idtable[] = { { .compatible = "neonode,zforce" }, {}, };
Make of_device_id array const, because all OF functions handle it as const. Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/input/touchscreen/zforce_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)