提交 ac791804 编写于 作者: J Jingoo Han 提交者: Linus Walleij

gpio: mcp23s08: Make of_device_id array const

Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: NJingoo Han <jg1.han@samsung.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 f77b6448
...@@ -714,7 +714,7 @@ static int mcp23s08_probe_one(struct mcp23s08 *mcp, struct device *dev, ...@@ -714,7 +714,7 @@ static int mcp23s08_probe_one(struct mcp23s08 *mcp, struct device *dev,
#ifdef CONFIG_OF #ifdef CONFIG_OF
#ifdef CONFIG_SPI_MASTER #ifdef CONFIG_SPI_MASTER
static struct of_device_id mcp23s08_spi_of_match[] = { static const struct of_device_id mcp23s08_spi_of_match[] = {
{ {
.compatible = "microchip,mcp23s08", .compatible = "microchip,mcp23s08",
.data = (void *) MCP_TYPE_S08, .data = (void *) MCP_TYPE_S08,
...@@ -738,7 +738,7 @@ MODULE_DEVICE_TABLE(of, mcp23s08_spi_of_match); ...@@ -738,7 +738,7 @@ MODULE_DEVICE_TABLE(of, mcp23s08_spi_of_match);
#endif #endif
#if IS_ENABLED(CONFIG_I2C) #if IS_ENABLED(CONFIG_I2C)
static struct of_device_id mcp23s08_i2c_of_match[] = { static const struct of_device_id mcp23s08_i2c_of_match[] = {
{ {
.compatible = "microchip,mcp23008", .compatible = "microchip,mcp23008",
.data = (void *) MCP_TYPE_008, .data = (void *) MCP_TYPE_008,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册