Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: sh-hspi: 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>
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>

authored by

Jingoo Han and committed by
Mark Brown
8e3489f3 3aea901d

+1 -1
+1 -1
drivers/spi/spi-sh-hspi.c
··· 304 304 return 0; 305 305 } 306 306 307 - static struct of_device_id hspi_of_match[] = { 307 + static const struct of_device_id hspi_of_match[] = { 308 308 { .compatible = "renesas,hspi", }, 309 309 { /* sentinel */ } 310 310 };