diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-05-07 22:03:00 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-05-15 01:39:56 +0200 |
commit | 5f155ee1c024bac5f6b8686dbfbea256a52785ce (patch) | |
tree | b00f42772c964deb82b5524be06301e10e15b2d1 /drivers/input/misc/rotary_encoder.c | |
parent | Input: gpio-beeper - make of_device_id array const (diff) | |
download | linux-5f155ee1c024bac5f6b8686dbfbea256a52785ce.tar.xz linux-5f155ee1c024bac5f6b8686dbfbea256a52785ce.zip |
Input: rotary_encoder - make of_device_id array const
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>
Diffstat (limited to 'drivers/input/misc/rotary_encoder.c')
-rw-r--r-- | drivers/input/misc/rotary_encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/rotary_encoder.c b/drivers/input/misc/rotary_encoder.c index 99b9e42aa748..93558a1c7f70 100644 --- 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", }, { }, }; |