From: Kuninori Morimoto Subject: Re: [PATCH 3/3] spi: sh-hspi: Make of_device_id array const Date: Tue, 03 Jun 2014 17:42:34 -0700 (PDT) Message-ID: <87d2epld3b.wl%kuninori.morimoto.gx@renesas.com> References: <001e01cf7f23$946c4460$bd44cd20$%han@samsung.com> <002001cf7f24$0b0b64c0$21222e40$%han@samsung.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: 'Mark Brown' , To: Jingoo Han Return-path: In-Reply-To: <002001cf7f24$0b0b64c0$21222e40$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> Sender: linux-spi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Hi > Make of_device_id array const, because all OF functions handle > it as const. > > Signed-off-by: Jingoo Han > --- Acked-by: Kuninori Morimoto > drivers/spi/spi-sh-hspi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/spi/spi-sh-hspi.c b/drivers/spi/spi-sh-hspi.c > index c8e795e..94b5fae 100644 > --- 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 */ } > }; > -- > 1.7.10.4 > > -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html