diff options
author | Thierry Reding <thierry.reding@gmail.com> | 2014-04-01 14:06:43 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2014-04-01 14:06:43 +0200 |
commit | 2ae69a460413615c82381b240df3800a909100d3 (patch) | |
tree | 029b65bca1caf58acc7d42bcf3d44d5d08d3ec44 /drivers/pwm | |
parent | pwm: pxa: Fix typo "pwm" -> "PWM" (diff) | |
download | linux-2ae69a460413615c82381b240df3800a909100d3.tar.xz linux-2ae69a460413615c82381b240df3800a909100d3.zip |
pwm: pxa: Constify OF match table
The table is never modified and all OF functions that use it take a
const struct of_device_id *.
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-pxa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index 9d702d5cbd55..cd356d870244 100644 --- a/drivers/pwm/pwm-pxa.c +++ b/drivers/pwm/pwm-pxa.c @@ -132,7 +132,7 @@ static struct pwm_ops pxa_pwm_ops = { * code that this is a single channel pxa25x-pwm. Currently all devices are * supported identically. */ -static struct of_device_id pwm_of_match[] = { +static const struct of_device_id pwm_of_match[] = { { .compatible = "marvell,pxa250-pwm", .data = &pwm_id_table[0]}, { .compatible = "marvell,pxa270-pwm", .data = &pwm_id_table[0]}, { .compatible = "marvell,pxa168-pwm", .data = &pwm_id_table[0]}, |