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