From: Jingoo Han Date: Wed, 7 May 2014 20:02:39 +0000 (-0700) Subject: Input: gpio-beeper - make of_device_id array const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=355b91151e93740756eae1dbd2c10d6e3d1d56f3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Input: gpio-beeper - 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/gpio-beeper.c b/drivers/input/misc/gpio-beeper.c index 5ed50ddfacfc..8886af63eae3 100644 --- a/drivers/input/misc/gpio-beeper.c +++ b/drivers/input/misc/gpio-beeper.c @@ -102,7 +102,7 @@ static int gpio_beeper_probe(struct platform_device *pdev) } #ifdef CONFIG_OF -static struct of_device_id gpio_beeper_of_match[] = { +static const struct of_device_id gpio_beeper_of_match[] = { { .compatible = BEEPER_MODNAME, }, { } };