From: Peter Korsgaard Subject: Re: [PATCH 1/5] i2c: ocores: Make of_device_id array const Date: Wed, 07 May 2014 11:30:16 +0200 Message-ID: <87vbtidjh2.fsf@dell.be.48ers.dk> References: <022101cf69d1$f1311200$d3933600$%han@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <022101cf69d1$f1311200$d3933600$%han-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> (Jingoo Han's message of "Wed, 07 May 2014 17:54:23 +0900") Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jingoo Han Cc: 'Wolfram Sang' , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, 'Peter Korsgaard' , 'Andreas Larsson' List-Id: linux-i2c@vger.kernel.org >>>>> "Jingoo" == Jingoo Han writes: > Make of_device_id array const, because all OF functions > handle it as const. > Signed-off-by: Jingoo Han Acked-by: Peter Korsgaard > --- > drivers/i2c/busses/i2c-ocores.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c > index 1f6369f..0e10cc6 100644 > --- a/drivers/i2c/busses/i2c-ocores.c > +++ b/drivers/i2c/busses/i2c-ocores.c > @@ -250,7 +250,7 @@ static struct i2c_adapter ocores_adapter = { > .algo = &ocores_algorithm, > }; > -static struct of_device_id ocores_i2c_match[] = { > +static const struct of_device_id ocores_i2c_match[] = { > { > .compatible = "opencores,i2c-ocores", > .data = (void *)TYPE_OCORES, > -- > 1.7.10.4 > -- > To unsubscribe from this list: send the line "unsubscribe linux-i2c" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Bye, Peter Korsgaard