From: Jingoo Han Date: Wed, 7 May 2014 07:48:59 +0000 (+0900) Subject: spi: spi-gpio: Make of_device_id array const X-Git-Tag: firefly_0821_release~176^2~3735^2~3^5~4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d9e15281896481df1a2566477287210c210357e3;p=firefly-linux-kernel-4.4.55.git spi: spi-gpio: Make of_device_id array const Make of_device_id array const, because all OF functions handle it as const. Signed-off-by: Jingoo Han Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c index 09823076df88..9f595535cf27 100644 --- a/drivers/spi/spi-gpio.c +++ b/drivers/spi/spi-gpio.c @@ -340,7 +340,7 @@ done: } #ifdef CONFIG_OF -static struct of_device_id spi_gpio_dt_ids[] = { +static const struct of_device_id spi_gpio_dt_ids[] = { { .compatible = "spi-gpio" }, {} };