projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3c3f4a
)
Input: zforce - make of_device_id array const
author
Jingoo Han
<jg1.han@samsung.com>
Wed, 7 May 2014 20:10:16 +0000
(13:10 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Wed, 14 May 2014 23:40:01 +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>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/zforce_ts.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/zforce_ts.c
b/drivers/input/touchscreen/zforce_ts.c
index 01d30cedde460f7f54f49ac72ad744b080fcfcb6..feea85b52fa89c88ee8a213b0eb4ccf8954a2373 100644
(file)
--- 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" },
{},
};