projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3aea901
)
spi: sh-hspi: Make of_device_id array const
author
Jingoo Han
<jg1.han@samsung.com>
Tue, 3 Jun 2014 12:04:59 +0000
(21:04 +0900)
committer
Mark Brown
<broonie@linaro.org>
Fri, 6 Jun 2014 11:37:41 +0000
(12:37 +0100)
Make of_device_id array const, because all OF functions handle
it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-sh-hspi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-sh-hspi.c
b/drivers/spi/spi-sh-hspi.c
index c8e795ef2e132fcb10dd4ac196decbd887861f5d..94b5faed21e2c45cfbdc6e06a665645722811054 100644
(file)
--- a/
drivers/spi/spi-sh-hspi.c
+++ b/
drivers/spi/spi-sh-hspi.c
@@
-304,7
+304,7
@@
static int hspi_remove(struct platform_device *pdev)
return 0;
}
-static struct of_device_id hspi_of_match[] = {
+static
const
struct of_device_id hspi_of_match[] = {
{ .compatible = "renesas,hspi", },
{ /* sentinel */ }
};