Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jingoo Han and committed by
Dmitry Torokhov
5f155ee1 355b9115

+1 -1
+1 -1
drivers/input/misc/rotary_encoder.c
··· 143 143 } 144 144 145 145 #ifdef CONFIG_OF 146 - static struct of_device_id rotary_encoder_of_match[] = { 146 + static const struct of_device_id rotary_encoder_of_match[] = { 147 147 { .compatible = "rotary-encoder", }, 148 148 { }, 149 149 };