diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-05-08 00:03:00 +0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-05-15 03:39:56 +0400 |
commit | 5f155ee1c024bac5f6b8686dbfbea256a52785ce (patch) | |
tree | b00f42772c964deb82b5524be06301e10e15b2d1 | |
parent | 355b91151e93740756eae1dbd2c10d6e3d1d56f3 (diff) | |
download | linux-5f155ee1c024bac5f6b8686dbfbea256a52785ce.tar.xz |
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>
-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", }, { }, }; |