]> Git Repo - linux.git/commitdiff
spi: sh-hspi: Make of_device_id array const
authorJingoo Han <[email protected]>
Tue, 3 Jun 2014 12:04:59 +0000 (21:04 +0900)
committerMark Brown <[email protected]>
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 <[email protected]>
Acked-by: Geert Uytterhoeven <[email protected]>
Acked-by: Kuninori Morimoto <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
drivers/spi/spi-sh-hspi.c

index c8e795ef2e132fcb10dd4ac196decbd887861f5d..94b5faed21e2c45cfbdc6e06a665645722811054 100644 (file)
@@ -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 */ }
 };
This page took 0.053641 seconds and 4 git commands to generate.