浏览代码

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>
Thierry Reding 11 年之前
父节点
当前提交
2ae69a4604
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/pwm/pwm-pxa.c

+ 1 - 1
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]},