浏览代码

regulator: st-pwm: Make of_device_id array const

Make of_device_id array const, because all OF functions
handle it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Jingoo Han 11 年之前
父节点
当前提交
a74cf0c207
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/regulator/st-pwm.c

+ 1 - 1
drivers/regulator/st-pwm.c

@@ -118,7 +118,7 @@ static const struct st_pwm_regulator_pdata b2105_info = {
 	.duty_cycle_table = b2105_duty_cycle_table,
 };
 
-static struct of_device_id st_pwm_of_match[] = {
+static const struct of_device_id st_pwm_of_match[] = {
 	{ .compatible = "st,b2105-pwm-regulator", .data = &b2105_info, },
 	{ },
 };