summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-gpio.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-05-07 09:48:59 +0200
committerMark Brown <broonie@linaro.org>2014-05-07 21:53:04 +0200
commitd9e15281896481df1a2566477287210c210357e3 (patch)
treea45c67ea07e2d6945ef6196e7968b731f57babfb /drivers/spi/spi-gpio.c
parentspi: fsl-dspi: Make of_device_id array const (diff)
downloadlinux-d9e15281896481df1a2566477287210c210357e3.tar.xz
linux-d9e15281896481df1a2566477287210c210357e3.zip
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 <jg1.han@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-gpio.c')
-rw-r--r--drivers/spi/spi-gpio.c2
1 files changed, 1 insertions, 1 deletions
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" },
{}
};