pwm: pxa: Constify OF match table
authorThierry Reding <thierry.reding@gmail.com>
Tue, 1 Apr 2014 12:06:43 +0000 (14:06 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 1 Apr 2014 12:06:43 +0000 (14:06 +0200)
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>
drivers/pwm/pwm-pxa.c

index 9d702d5cbd554d343b35b19e2123450275676535..cd356d8702441169773d030494a4c41c42dc7702 100644 (file)
@@ -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]},