From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758213Ab1BRKld (ORCPT ); Fri, 18 Feb 2011 05:41:33 -0500 Received: from mailhost.informatik.uni-hamburg.de ([134.100.9.70]:52525 "EHLO mailhost.informatik.uni-hamburg.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757296Ab1BRKl2 (ORCPT ); Fri, 18 Feb 2011 05:41:28 -0500 Message-ID: <4D5E4CC1.1010705@metafoo.de> Date: Fri, 18 Feb 2011 11:41:05 +0100 From: Lars-Peter Clausen User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101226 Icedove/3.0.11 MIME-Version: 1.0 To: Lars-Peter Clausen CC: Ben Dooks , Kukjin Kim , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 01/09] ARM: s3c2442: gta02: Fix usage gpio bank j pin definitions References: <1297043521-21903-1-git-send-email-lars@metafoo.de> In-Reply-To: <1297043521-21903-1-git-send-email-lars@metafoo.de> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/07/2011 02:51 AM, Lars-Peter Clausen wrote: > The gta02 header file still uses the old S3C2410_GPJx defines instead of the > S3C2410_GPJ(x) macro. Since the S3C2410_GPJx defines have already been removed > this causes the following build failure: > > sound/soc/samsung/neo1973_wm8753.c: In function 'lm4853_set_spk': > sound/soc/samsung/neo1973_wm8753.c:259: error: 'S3C2440_GPJ2' undeclared (first use in this function) > sound/soc/samsung/neo1973_wm8753.c:259: error: (Each undeclared identifier is reported only once > sound/soc/samsung/neo1973_wm8753.c:259: error: for each function it appears in.) > sound/soc/samsung/neo1973_wm8753.c: In function 'lm4853_get_spk': > sound/soc/samsung/neo1973_wm8753.c:267: error: 'S3C2440_GPJ2' undeclared (first use in this function) > sound/soc/samsung/neo1973_wm8753.c: In function 'lm4853_event': > sound/soc/samsung/neo1973_wm8753.c:276: error: 'S3C2440_GPJ1' undeclared (first use in this function) > sound/soc/samsung/neo1973_wm8753.c: At top level: > sound/soc/samsung/neo1973_wm8753.c:439: error: 'S3C2440_GPJ2' undeclared here (not in a function) > sound/soc/samsung/neo1973_wm8753.c:440: error: 'S3C2440_GPJ1' undeclared here (not in a function) > > This patches fixes the issue by doing a s,S3C2410_GPJ([\d]+),S3C2410_GPJ(\1),g > on the file. > > Signed-off-by: Lars-Peter Clausen Hi Ben or Kukjin could you take a look at this series and merge it, if it is ok? - Lars > --- > arch/arm/mach-s3c2440/include/mach/gta02.h | 26 +++++++++++++------------- > 1 files changed, 13 insertions(+), 13 deletions(-) > > diff --git a/arch/arm/mach-s3c2440/include/mach/gta02.h b/arch/arm/mach-s3c2440/include/mach/gta02.h > index 953331d..3a56a22 100644 > --- a/arch/arm/mach-s3c2440/include/mach/gta02.h > +++ b/arch/arm/mach-s3c2440/include/mach/gta02.h > @@ -44,19 +44,19 @@ > #define GTA02v3_GPIO_nUSB_FLT S3C2410_GPG(10) /* v3 + v4 only */ > #define GTA02v3_GPIO_nGSM_OC S3C2410_GPG(11) /* v3 + v4 only */ > > -#define GTA02_GPIO_AMP_SHUT S3C2440_GPJ1 /* v2 + v3 + v4 only */ > -#define GTA02v1_GPIO_WLAN_GPIO10 S3C2440_GPJ2 > -#define GTA02_GPIO_HP_IN S3C2440_GPJ2 /* v2 + v3 + v4 only */ > -#define GTA02_GPIO_INT0 S3C2440_GPJ3 /* v2 + v3 + v4 only */ > -#define GTA02_GPIO_nGSM_EN S3C2440_GPJ4 > -#define GTA02_GPIO_3D_RESET S3C2440_GPJ5 > -#define GTA02_GPIO_nDL_GSM S3C2440_GPJ6 /* v4 + v5 only */ > -#define GTA02_GPIO_WLAN_GPIO0 S3C2440_GPJ7 > -#define GTA02v1_GPIO_BAT_ID S3C2440_GPJ8 > -#define GTA02_GPIO_KEEPACT S3C2440_GPJ8 > -#define GTA02v1_GPIO_HP_IN S3C2440_GPJ10 > -#define GTA02_CHIP_PWD S3C2440_GPJ11 /* v2 + v3 + v4 only */ > -#define GTA02_GPIO_nWLAN_RESET S3C2440_GPJ12 /* v2 + v3 + v4 only */ > +#define GTA02_GPIO_AMP_SHUT S3C2410_GPJ(1) /* v2 + v3 + v4 only */ > +#define GTA02v1_GPIO_WLAN_GPIO10 S3C2410_GPJ(2) > +#define GTA02_GPIO_HP_IN S3C2410_GPJ(2) /* v2 + v3 + v4 only */ > +#define GTA02_GPIO_INT0 S3C2410_GPJ(3) /* v2 + v3 + v4 only */ > +#define GTA02_GPIO_nGSM_EN S3C2410_GPJ(4) > +#define GTA02_GPIO_3D_RESET S3C2410_GPJ(5) > +#define GTA02_GPIO_nDL_GSM S3C2410_GPJ(6) /* v4 + v5 only */ > +#define GTA02_GPIO_WLAN_GPIO0 S3C2410_GPJ(7) > +#define GTA02v1_GPIO_BAT_ID S3C2410_GPJ(8) > +#define GTA02_GPIO_KEEPACT S3C2410_GPJ(8) > +#define GTA02v1_GPIO_HP_IN S3C2410_GPJ(10) > +#define GTA02_CHIP_PWD S3C2410_GPJ(11) /* v2 + v3 + v4 only */ > +#define GTA02_GPIO_nWLAN_RESET S3C2410_GPJ(12) /* v2 + v3 + v4 only */ > > #define GTA02_IRQ_GSENSOR_1 IRQ_EINT0 > #define GTA02_IRQ_MODEM IRQ_EINT1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: lars@metafoo.de (Lars-Peter Clausen) Date: Fri, 18 Feb 2011 11:41:05 +0100 Subject: [PATCH 01/09] ARM: s3c2442: gta02: Fix usage gpio bank j pin definitions In-Reply-To: <1297043521-21903-1-git-send-email-lars@metafoo.de> References: <1297043521-21903-1-git-send-email-lars@metafoo.de> Message-ID: <4D5E4CC1.1010705@metafoo.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 02/07/2011 02:51 AM, Lars-Peter Clausen wrote: > The gta02 header file still uses the old S3C2410_GPJx defines instead of the > S3C2410_GPJ(x) macro. Since the S3C2410_GPJx defines have already been removed > this causes the following build failure: > > sound/soc/samsung/neo1973_wm8753.c: In function 'lm4853_set_spk': > sound/soc/samsung/neo1973_wm8753.c:259: error: 'S3C2440_GPJ2' undeclared (first use in this function) > sound/soc/samsung/neo1973_wm8753.c:259: error: (Each undeclared identifier is reported only once > sound/soc/samsung/neo1973_wm8753.c:259: error: for each function it appears in.) > sound/soc/samsung/neo1973_wm8753.c: In function 'lm4853_get_spk': > sound/soc/samsung/neo1973_wm8753.c:267: error: 'S3C2440_GPJ2' undeclared (first use in this function) > sound/soc/samsung/neo1973_wm8753.c: In function 'lm4853_event': > sound/soc/samsung/neo1973_wm8753.c:276: error: 'S3C2440_GPJ1' undeclared (first use in this function) > sound/soc/samsung/neo1973_wm8753.c: At top level: > sound/soc/samsung/neo1973_wm8753.c:439: error: 'S3C2440_GPJ2' undeclared here (not in a function) > sound/soc/samsung/neo1973_wm8753.c:440: error: 'S3C2440_GPJ1' undeclared here (not in a function) > > This patches fixes the issue by doing a s,S3C2410_GPJ([\d]+),S3C2410_GPJ(\1),g > on the file. > > Signed-off-by: Lars-Peter Clausen Hi Ben or Kukjin could you take a look at this series and merge it, if it is ok? - Lars > --- > arch/arm/mach-s3c2440/include/mach/gta02.h | 26 +++++++++++++------------- > 1 files changed, 13 insertions(+), 13 deletions(-) > > diff --git a/arch/arm/mach-s3c2440/include/mach/gta02.h b/arch/arm/mach-s3c2440/include/mach/gta02.h > index 953331d..3a56a22 100644 > --- a/arch/arm/mach-s3c2440/include/mach/gta02.h > +++ b/arch/arm/mach-s3c2440/include/mach/gta02.h > @@ -44,19 +44,19 @@ > #define GTA02v3_GPIO_nUSB_FLT S3C2410_GPG(10) /* v3 + v4 only */ > #define GTA02v3_GPIO_nGSM_OC S3C2410_GPG(11) /* v3 + v4 only */ > > -#define GTA02_GPIO_AMP_SHUT S3C2440_GPJ1 /* v2 + v3 + v4 only */ > -#define GTA02v1_GPIO_WLAN_GPIO10 S3C2440_GPJ2 > -#define GTA02_GPIO_HP_IN S3C2440_GPJ2 /* v2 + v3 + v4 only */ > -#define GTA02_GPIO_INT0 S3C2440_GPJ3 /* v2 + v3 + v4 only */ > -#define GTA02_GPIO_nGSM_EN S3C2440_GPJ4 > -#define GTA02_GPIO_3D_RESET S3C2440_GPJ5 > -#define GTA02_GPIO_nDL_GSM S3C2440_GPJ6 /* v4 + v5 only */ > -#define GTA02_GPIO_WLAN_GPIO0 S3C2440_GPJ7 > -#define GTA02v1_GPIO_BAT_ID S3C2440_GPJ8 > -#define GTA02_GPIO_KEEPACT S3C2440_GPJ8 > -#define GTA02v1_GPIO_HP_IN S3C2440_GPJ10 > -#define GTA02_CHIP_PWD S3C2440_GPJ11 /* v2 + v3 + v4 only */ > -#define GTA02_GPIO_nWLAN_RESET S3C2440_GPJ12 /* v2 + v3 + v4 only */ > +#define GTA02_GPIO_AMP_SHUT S3C2410_GPJ(1) /* v2 + v3 + v4 only */ > +#define GTA02v1_GPIO_WLAN_GPIO10 S3C2410_GPJ(2) > +#define GTA02_GPIO_HP_IN S3C2410_GPJ(2) /* v2 + v3 + v4 only */ > +#define GTA02_GPIO_INT0 S3C2410_GPJ(3) /* v2 + v3 + v4 only */ > +#define GTA02_GPIO_nGSM_EN S3C2410_GPJ(4) > +#define GTA02_GPIO_3D_RESET S3C2410_GPJ(5) > +#define GTA02_GPIO_nDL_GSM S3C2410_GPJ(6) /* v4 + v5 only */ > +#define GTA02_GPIO_WLAN_GPIO0 S3C2410_GPJ(7) > +#define GTA02v1_GPIO_BAT_ID S3C2410_GPJ(8) > +#define GTA02_GPIO_KEEPACT S3C2410_GPJ(8) > +#define GTA02v1_GPIO_HP_IN S3C2410_GPJ(10) > +#define GTA02_CHIP_PWD S3C2410_GPJ(11) /* v2 + v3 + v4 only */ > +#define GTA02_GPIO_nWLAN_RESET S3C2410_GPJ(12) /* v2 + v3 + v4 only */ > > #define GTA02_IRQ_GSENSOR_1 IRQ_EINT0 > #define GTA02_IRQ_MODEM IRQ_EINT1