diff options
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-mcp23s08.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-mcp23s08.c b/drivers/gpio/gpio-mcp23s08.c index 99a68310e7c0..d7f384f9cde0 100644 --- a/drivers/gpio/gpio-mcp23s08.c +++ b/drivers/gpio/gpio-mcp23s08.c | |||
@@ -714,7 +714,7 @@ fail: | |||
714 | 714 | ||
715 | #ifdef CONFIG_OF | 715 | #ifdef CONFIG_OF |
716 | #ifdef CONFIG_SPI_MASTER | 716 | #ifdef CONFIG_SPI_MASTER |
717 | static struct of_device_id mcp23s08_spi_of_match[] = { | 717 | static const struct of_device_id mcp23s08_spi_of_match[] = { |
718 | { | 718 | { |
719 | .compatible = "microchip,mcp23s08", | 719 | .compatible = "microchip,mcp23s08", |
720 | .data = (void *) MCP_TYPE_S08, | 720 | .data = (void *) MCP_TYPE_S08, |
@@ -738,7 +738,7 @@ MODULE_DEVICE_TABLE(of, mcp23s08_spi_of_match); | |||
738 | #endif | 738 | #endif |
739 | 739 | ||
740 | #if IS_ENABLED(CONFIG_I2C) | 740 | #if IS_ENABLED(CONFIG_I2C) |
741 | static struct of_device_id mcp23s08_i2c_of_match[] = { | 741 | static const struct of_device_id mcp23s08_i2c_of_match[] = { |
742 | { | 742 | { |
743 | .compatible = "microchip,mcp23008", | 743 | .compatible = "microchip,mcp23008", |
744 | .data = (void *) MCP_TYPE_008, | 744 | .data = (void *) MCP_TYPE_008, |