From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D52DAC2D0A3 for ; Mon, 9 Nov 2020 12:12:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8DB8C20867 for ; Mon, 9 Nov 2020 12:12:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728927AbgKIMMu (ORCPT ); Mon, 9 Nov 2020 07:12:50 -0500 Received: from mga06.intel.com ([134.134.136.31]:20208 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727311AbgKIMMu (ORCPT ); Mon, 9 Nov 2020 07:12:50 -0500 IronPort-SDR: 5BEb/MiP1d0MqWiUvMPYdoqSpdBKKehA7uupXVr7YqT0kUlEsw0Wryz3hm6Hx+z/4d2wk/E7mE GuuHOt0d7tFg== X-IronPort-AV: E=McAfee;i="6000,8403,9799"; a="231422102" X-IronPort-AV: E=Sophos;i="5.77,463,1596524400"; d="scan'208";a="231422102" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2020 04:12:49 -0800 IronPort-SDR: hPyI91GEaAu14A+OU9orFoNwPeWGyErcjF9K/pCij7ADKyEkijvShlKGdYFcfbT72g+C/Z+vVw mrcZeQIq5EcA== X-IronPort-AV: E=Sophos;i="5.77,463,1596524400"; d="scan'208";a="322419857" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2020 04:12:48 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kc63S-005AmY-Jd; Mon, 09 Nov 2020 14:13:50 +0200 Date: Mon, 9 Nov 2020 14:13:50 +0200 From: Andy Shevchenko To: Russell King , linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski , linux-gpio Subject: Re: [PATCH v1] ARM: Drop ARCH_NR_GPIOS definition Message-ID: <20201109121350.GD4077@smile.fi.intel.com> References: <20201012154709.68521-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201012154709.68521-1-andriy.shevchenko@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Mon, Oct 12, 2020 at 06:47:09PM +0300, Andy Shevchenko wrote: > The conditional by the generic header is the same, > hence drop unnecessary duplication. Any comment on this? > Signed-off-by: Andy Shevchenko > --- > arch/arm/include/asm/gpio.h | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h > index c50e383358c4..f3bb8a2bf788 100644 > --- a/arch/arm/include/asm/gpio.h > +++ b/arch/arm/include/asm/gpio.h > @@ -2,10 +2,6 @@ > #ifndef _ARCH_ARM_GPIO_H > #define _ARCH_ARM_GPIO_H > > -#if CONFIG_ARCH_NR_GPIO > 0 > -#define ARCH_NR_GPIOS CONFIG_ARCH_NR_GPIO > -#endif > - > /* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */ > #include > > -- > 2.28.0 > -- With Best Regards, Andy Shevchenko From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22848C388F7 for ; Mon, 9 Nov 2020 12:13:19 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9AC9720789 for ; Mon, 9 Nov 2020 12:13:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="tHFFArhW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9AC9720789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=yHMNWCWg7U+u/3piy+60hgVtITzPSrRNEk1rlUVjJSs=; b=tHFFArhWO6PFMkFQNRPEb6C9ga rNStMU3f7P9hNb/HXe9ZwZvWpwjfgYJFOy7dfPazFMpdPraKcmmMMaWr7Ulzi/2EClIHev2zd2V27 9A4Utt00ts0HOqenav0Ao3CNGMoIEExEun6JB4LBjsSO/wc0rdl4UH5JAvIY/N4nEilAOiYLdyUMa uoifIY13/HEzbrSbOG24RUTMBN6kzZZ7Pakf6ujF7aElTx6YMVv0ykvPmBncuSezd7TiKqnwr0u1S 8c5CpBfoYSLKPyJNChI5y1vCuVdZgAPwEeInzD9p50ilG1wnk3Fbdam7vYK2tZoSZygXoCbwi9Ef6 weC1kIwg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kc62Z-0007Mp-Gu; Mon, 09 Nov 2020 12:12:55 +0000 Received: from mga17.intel.com ([192.55.52.151]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kc62W-0007Kb-Ov for linux-arm-kernel@lists.infradead.org; Mon, 09 Nov 2020 12:12:53 +0000 IronPort-SDR: ZctMxX4eTVm2xvrkKfurBoAE39VFzYJyZmCMVsiN5K3OdacRW/zxdzMXVSoTsgqhoymUYIM6Xy qU/NeVZi5E0w== X-IronPort-AV: E=McAfee;i="6000,8403,9799"; a="149640270" X-IronPort-AV: E=Sophos;i="5.77,463,1596524400"; d="scan'208";a="149640270" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2020 04:12:49 -0800 IronPort-SDR: hPyI91GEaAu14A+OU9orFoNwPeWGyErcjF9K/pCij7ADKyEkijvShlKGdYFcfbT72g+C/Z+vVw mrcZeQIq5EcA== X-IronPort-AV: E=Sophos;i="5.77,463,1596524400"; d="scan'208";a="322419857" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2020 04:12:48 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kc63S-005AmY-Jd; Mon, 09 Nov 2020 14:13:50 +0200 Date: Mon, 9 Nov 2020 14:13:50 +0200 From: Andy Shevchenko To: Russell King , linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski , linux-gpio Subject: Re: [PATCH v1] ARM: Drop ARCH_NR_GPIOS definition Message-ID: <20201109121350.GD4077@smile.fi.intel.com> References: <20201012154709.68521-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201012154709.68521-1-andriy.shevchenko@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201109_071252_971261_B0B1B067 X-CRM114-Status: GOOD ( 18.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Oct 12, 2020 at 06:47:09PM +0300, Andy Shevchenko wrote: > The conditional by the generic header is the same, > hence drop unnecessary duplication. Any comment on this? > Signed-off-by: Andy Shevchenko > --- > arch/arm/include/asm/gpio.h | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h > index c50e383358c4..f3bb8a2bf788 100644 > --- a/arch/arm/include/asm/gpio.h > +++ b/arch/arm/include/asm/gpio.h > @@ -2,10 +2,6 @@ > #ifndef _ARCH_ARM_GPIO_H > #define _ARCH_ARM_GPIO_H > > -#if CONFIG_ARCH_NR_GPIO > 0 > -#define ARCH_NR_GPIOS CONFIG_ARCH_NR_GPIO > -#endif > - > /* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */ > #include > > -- > 2.28.0 > -- With Best Regards, Andy Shevchenko _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel