summaryrefslogtreecommitdiffstats
path: root/drivers/input/misc/gpio-beeper.c
diff options
context:
space:
mode:
authorJingoo Han2014-05-07 22:02:39 +0200
committerDmitry Torokhov2014-05-15 01:39:55 +0200
commit355b91151e93740756eae1dbd2c10d6e3d1d56f3 (patch)
treec851e91dd94c4cd901503da907426c6afc54e99e /drivers/input/misc/gpio-beeper.c
parentInput: imx_keypad - make of_device_id array const (diff)
downloadkernel-qcow2-linux-355b91151e93740756eae1dbd2c10d6e3d1d56f3.tar.gz
kernel-qcow2-linux-355b91151e93740756eae1dbd2c10d6e3d1d56f3.tar.xz
kernel-qcow2-linux-355b91151e93740756eae1dbd2c10d6e3d1d56f3.zip
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 <jg1.han@samsung.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc/gpio-beeper.c')
-rw-r--r--drivers/input/misc/gpio-beeper.c2
1 files changed, 1 insertions, 1 deletions
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, },
{ }
};