projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
355b911
)
Input: rotary_encoder - make of_device_id array const
author
Jingoo Han
<jg1.han@samsung.com>
Wed, 7 May 2014 20:03:00 +0000
(13:03 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Wed, 14 May 2014 23:39:56 +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/misc/rotary_encoder.c
patch
|
blob
|
history
diff --git
a/drivers/input/misc/rotary_encoder.c
b/drivers/input/misc/rotary_encoder.c
index 99b9e42aa7482cb7767df51a78aec9f1907c2357..93558a1c7f704fe30cc71548fab96cd8e8c8381b 100644
(file)
--- a/
drivers/input/misc/rotary_encoder.c
+++ b/
drivers/input/misc/rotary_encoder.c
@@
-143,7
+143,7
@@
static irqreturn_t rotary_encoder_half_period_irq(int irq, void *dev_id)
}
#ifdef CONFIG_OF
-static struct of_device_id rotary_encoder_of_match[] = {
+static
const
struct of_device_id rotary_encoder_of_match[] = {
{ .compatible = "rotary-encoder", },
{ },
};