aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/misc/regulator-haptic.c
diff options
context:
space:
mode:
authorFabian Frederick2015-03-18 09:58:47 -0700
committerDmitry Torokhov2015-03-19 12:16:18 -0700
commit245165de9896cca918701b116d72d486a0398437 (patch)
treefecdd7a54c05adc7cc61901fd3b8cc9489c5c4f2 /drivers/input/misc/regulator-haptic.c
parentd1b12075ffa808dce33dd46b7ad035bebf8da215 (diff)
Input: constify of_device_id arrays
of_device_id is always used as const argument (See driver.of_match_table and open firmware functions). Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc/regulator-haptic.c')
-rw-r--r--drivers/input/misc/regulator-haptic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/regulator-haptic.c b/drivers/input/misc/regulator-haptic.c
index 132eb914ea3e..6bf3f1082f71 100644
--- a/drivers/input/misc/regulator-haptic.c
+++ b/drivers/input/misc/regulator-haptic.c
@@ -245,7 +245,7 @@ static int __maybe_unused regulator_haptic_resume(struct device *dev)
static SIMPLE_DEV_PM_OPS(regulator_haptic_pm_ops,
regulator_haptic_suspend, regulator_haptic_resume);
-static struct of_device_id regulator_haptic_dt_match[] = {
+static const struct of_device_id regulator_haptic_dt_match[] = {
{ .compatible = "regulator-haptic" },
{ /* sentinel */ },
};