OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f23e0ab
)
Input: mms114 - make of_device_id array const
author
Jingoo Han
<jg1.han@samsung.com>
Wed, 7 May 2014 20:09:52 +0000
(13:09 -0700)
committer
Dmitry 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
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/mms114.c
b/drivers/input/touchscreen/mms114.c
index
8a598c0
..
9d83413
100644
(file)
--- a/
drivers/input/touchscreen/mms114.c
+++ b/
drivers/input/touchscreen/mms114.c
@@
-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" },
{ }
};