gpio: mcp23s08: Make of_device_id array const
authorJingoo Han <jg1.han@samsung.com>
Wed, 7 May 2014 09:05:17 +0000 (18:05 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 May 2014 08:59:29 +0000 (10:59 +0200)
Make of_device_id array const, because all OF functions
handle it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mcp23s08.c

index 99a68310e7c09eb053f5cd28395549ece9f8babe..d7f384f9cde0fdee7c05e0dcd446fb86b1365f3f 100644 (file)
@@ -714,7 +714,7 @@ fail:
 
 #ifdef CONFIG_OF
 #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",
                .data = (void *) MCP_TYPE_S08,
@@ -738,7 +738,7 @@ MODULE_DEVICE_TABLE(of, mcp23s08_spi_of_match);
 #endif
 
 #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",
                .data = (void *) MCP_TYPE_008,