瀏覽代碼

mfd: max14577: Make of_device_id array const

Array of struct of_device_id should be const as expected by both
of_match_table field and of_match_device() call.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Krzysztof Kozlowski 11 年之前
父節點
當前提交
8f7f62705e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mfd/max14577.c

+ 1 - 1
drivers/mfd/max14577.c

@@ -57,7 +57,7 @@ static struct mfd_cell max77836_devs[] = {
 	},
 	},
 };
 };
 
 
-static struct of_device_id max14577_dt_match[] = {
+static const struct of_device_id max14577_dt_match[] = {
 	{
 	{
 		.compatible = "maxim,max14577",
 		.compatible = "maxim,max14577",
 		.data = (void *)MAXIM_DEVICE_TYPE_MAX14577,
 		.data = (void *)MAXIM_DEVICE_TYPE_MAX14577,