From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755084AbaEGIMO (ORCPT ); Wed, 7 May 2014 04:12:14 -0400 Received: from fw-tnat.austin.arm.com ([217.140.110.23]:41957 "EHLO collaborate-mta1.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751152AbaEGIML (ORCPT ); Wed, 7 May 2014 04:12:11 -0400 Message-ID: <1399450326.3706.9.camel@hornet> Subject: Re: [PATCH 5/5] regulator: vexpress: Make of_device_id array const From: Pawel Moll To: Jingoo Han Cc: "'Mark Brown'" , "'Liam Girdwood'" , "linux-kernel@vger.kernel.org" Date: Wed, 07 May 2014 09:12:06 +0100 In-Reply-To: <01ef01cf69cb$a1a66d30$e4f34790$%han@samsung.com> References: <01e101cf69c9$abd91f70$038b5e50$%han@samsung.com> <01ef01cf69cb$a1a66d30$e4f34790$%han@samsung.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2014-05-07 at 09:09 +0100, Jingoo Han wrote: > Make of_device_id array const, because all OF functions > handle it as const. > > Signed-off-by: Jingoo Han > --- > drivers/regulator/vexpress.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/regulator/vexpress.c b/drivers/regulator/vexpress.c > index f3ae28a..147ecc7 100644 > --- a/drivers/regulator/vexpress.c > +++ b/drivers/regulator/vexpress.c > @@ -123,7 +123,7 @@ static int vexpress_regulator_remove(struct platform_device *pdev) > return 0; > } > > -static struct of_device_id vexpress_regulator_of_match[] = { > +static const struct of_device_id vexpress_regulator_of_match[] = { > { .compatible = "arm,vexpress-volt", }, > { } > }; Acked-by: Pawel Moll Thanks! Pawel