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=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,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 64AB3C433DB for ; Thu, 21 Jan 2021 17:13:42 +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 06CC023A57 for ; Thu, 21 Jan 2021 17:13:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 06CC023A57 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=yteKvek08evpBhDGaOvNO0Hk9CEBPSX3AF+GHyctrhc=; b=KXU02XlrQ5BaTParev4rSCprNW zFMlr0QN0jtSLSWbBqv90Qb/ApIrzIM7wE1FkMIltrbt/OMuJBT612KGLGScaCVlvlgQ4BeLAfK32 QHqLS0IPxRCGqwusV1X1ErzuF8IrhwVqIzx/mJYnt0Q+oXiroBomwoWH+b3KtKGMfYRZmvnxPFYSI RGEjSo8tYMqWyVbXEp/Zt3fa426uMPJwBTJRLscms6WlXZA/sucMPY0It9mhy0S+IYrXylvVh+SoY kQ5a6qkZT7pHHEYRiqDiy8D5MirkM645KQNpnnxTaMEx+yetIL46BeGUc+NFQzMWBTn9AvorTvkgD dFzrl6lg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2dVM-0000mI-1r; Thu, 21 Jan 2021 17:12:20 +0000 Received: from mga09.intel.com ([134.134.136.24]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2dVH-0000ja-Qh for linux-arm-kernel@lists.infradead.org; Thu, 21 Jan 2021 17:12:18 +0000 IronPort-SDR: jxYaVc2UM5BqwDw4r95NGtRjtD1hG2WD06udCocpLjzN83+BWU0FPuEwh/ndQIcf5TBjXlnPDY ekNre3Xz+NWQ== X-IronPort-AV: E=McAfee;i="6000,8403,9871"; a="179457118" X-IronPort-AV: E=Sophos;i="5.79,364,1602572400"; d="scan'208";a="179457118" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2021 09:12:11 -0800 IronPort-SDR: mIKet1+8IcYOTlRmDDhW94uFkLGpwIc6wlEOcgnRgXwgNNAsgyvzG1/LryQgw+RSzlM6Ui5nWa xvh8Y37twuyg== X-IronPort-AV: E=Sophos;i="5.79,364,1602572400"; d="scan'208";a="574330573" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2021 09:12:09 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1l2dWC-007mM7-Jh; Thu, 21 Jan 2021 19:13:12 +0200 Date: Thu, 21 Jan 2021 19:13:12 +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: 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-20210121_121216_010084_E0DCF690 X-CRM114-Status: GOOD ( 16.72 ) 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. Can we get this proceed somehow? > 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