From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933027AbcFHPja (ORCPT ); Wed, 8 Jun 2016 11:39:30 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:37356 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932293AbcFHPj2 (ORCPT ); Wed, 8 Jun 2016 11:39:28 -0400 Date: Wed, 8 Jun 2016 16:39:57 +0100 From: Lee Jones To: Axel Lin Cc: Laxman Dewangan , Mallikarjun Kasoju , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: max77620: Constify resources tables Message-ID: <20160608153957.GZ14888@dell> References: <1465115297.8962.1.camel@ingics.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1465115297.8962.1.camel@ingics.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 05 Jun 2016, Axel Lin wrote: > These tables are never modified, so declare them as const. > > Signed-off-by: Axel Lin > --- > drivers/mfd/max77620.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) Applied, thanks. > diff --git a/drivers/mfd/max77620.c b/drivers/mfd/max77620.c > index 199d261..e831422 100644 > --- a/drivers/mfd/max77620.c > +++ b/drivers/mfd/max77620.c > @@ -37,19 +37,19 @@ > #include > #include > > -static struct resource gpio_resources[] = { > +static const struct resource gpio_resources[] = { > DEFINE_RES_IRQ(MAX77620_IRQ_TOP_GPIO), > }; > > -static struct resource power_resources[] = { > +static const struct resource power_resources[] = { > DEFINE_RES_IRQ(MAX77620_IRQ_LBT_MBATLOW), > }; > > -static struct resource rtc_resources[] = { > +static const struct resource rtc_resources[] = { > DEFINE_RES_IRQ(MAX77620_IRQ_TOP_RTC), > }; > > -static struct resource thermal_resources[] = { > +static const struct resource thermal_resources[] = { > DEFINE_RES_IRQ(MAX77620_IRQ_LBT_TJALRM1), > DEFINE_RES_IRQ(MAX77620_IRQ_LBT_TJALRM2), > }; -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog