diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-03-18 19:58:47 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-03-19 22:16:18 +0300 |
commit | 245165de9896cca918701b116d72d486a0398437 (patch) | |
tree | fecdd7a54c05adc7cc61901fd3b8cc9489c5c4f2 /drivers/input/misc/regulator-haptic.c | |
parent | d1b12075ffa808dce33dd46b7ad035bebf8da215 (diff) | |
download | linux-245165de9896cca918701b116d72d486a0398437.tar.xz |
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.c | 2 |
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 */ }, }; |