瀏覽代碼

regulator: max8952: 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>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Jingoo Han 11 年之前
父節點
當前提交
cfe6e3334e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/regulator/max8952.c

+ 1 - 1
drivers/regulator/max8952.c

@@ -129,7 +129,7 @@ static const struct regulator_desc regulator = {
 };
 
 #ifdef CONFIG_OF
-static struct of_device_id max8952_dt_match[] = {
+static const struct of_device_id max8952_dt_match[] = {
 	{ .compatible = "maxim,max8952" },
 	{},
 };