浏览代码

mfd: kempld-core: Make mfd_cell array const

The kempld_devs (array of mfd_cells) can be safely made const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Kevin Strasser <kevin.strasser@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Krzysztof Kozlowski 11 年之前
父节点
当前提交
bd6d35a62d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mfd/kempld-core.c

+ 1 - 1
drivers/mfd/kempld-core.c

@@ -86,7 +86,7 @@ enum kempld_cells {
 	KEMPLD_UART,
 	KEMPLD_UART,
 };
 };
 
 
-static struct mfd_cell kempld_devs[] = {
+static const struct mfd_cell kempld_devs[] = {
 	[KEMPLD_I2C] = {
 	[KEMPLD_I2C] = {
 		.name = "kempld-i2c",
 		.name = "kempld-i2c",
 	},
 	},