From: Jingoo Han Date: Wed, 7 May 2014 20:03:00 +0000 (-0700) Subject: Input: rotary_encoder - make of_device_id array const X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5f155ee1c024bac5f6b8686dbfbea256a52785ce;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Dmitry Torokhov --- 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", }, { }, };