Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4096166rwj; Tue, 20 Dec 2022 06:07:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXtQfr84dENnGMu1X4oYZeiENXLHhxYnARao3at3o18azsLdUTA+Vwa01TBH2eOxMwbTvE7A X-Received: by 2002:a05:6402:4021:b0:472:c7fe:475e with SMTP id d33-20020a056402402100b00472c7fe475emr23557439eda.27.1671545256724; Tue, 20 Dec 2022 06:07:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671545256; cv=none; d=google.com; s=arc-20160816; b=Uc17MTOLO2kBlm6sfYV6mHsvbSSgbVeLUo5U7GPwq5xWNsK0vsZ9WbiJ3TVKmXDHpI kHBTXwqmQbSVOsbS58vbwum+43zYKaOSP/6mJwH9a+Vza2E2fChxxu9FJVKv4IfJqo4k Sd0iLfyCqpM3pbICI1Vof6ayla+7RAGJESPVBl/qkykdLcpdQDTT9vQeuWP1P6s88Z2e 4kdIGaHJfU6mHV90+/6k4KILtTQV3G6oey9Qd/nffxmz1xG8YgNiFOLC+gNiedb5aueb 1u6aAYlukEVCYqvJnf2sf8q/a/ZOxOKZTwoa60hGKXuqpwv30MiNhcdIc+CLORkSE0ZL 8TNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=w4fm8fNB4pCbcZHQnGxJeXNt4keuzIul9AGFsXo1rWk=; b=zq5Yp2iRqdSmfi1Hn9sF8BiFjLGWb03lzbR4JbRfZC1YAptNJUVstG+9kY8H/JYfce Ta+Qw13j91z40TtVFApVxSZvy48ClLuuvW/7KWiDCd75TGKNUxwnaWGFnQ41so2HY9T5 XiCQtcHpAlZz6dzmtY4zvNWpw4vm6NUC9Cf9W3d19NcVubgo+aATcCuX9FWVJB9SlE4t 1gwxVD5PfBEoPCp4uQf58RTKGTB4qGbB+YCSsqwycOddVsQjvoapc5dcfxqqGeyZ3wMu l/WRkQg0eJcRlTHEq76baJVg3c094MnT51+rBTSBL4ESlDpknhxaEQ20nE2nzKWw8mYU JZxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TUEMq4Xi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz10-20020a0564021d4a00b0045cfb63a033si2166715edb.551.2022.12.20.06.07.19; Tue, 20 Dec 2022 06:07:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TUEMq4Xi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233772AbiLTNwB (ORCPT + 69 others); Tue, 20 Dec 2022 08:52:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233754AbiLTNvt (ORCPT ); Tue, 20 Dec 2022 08:51:49 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B67331AF12; Tue, 20 Dec 2022 05:51:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671544308; x=1703080308; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FnDumVYNZvNTa9DjVaNtZD4+2+3DL2akGci6xaMTnaQ=; b=TUEMq4XiIVC0pNnI8li6B53VIMqGNoqUcj830+Ubf0CAJAXWdke0vVq2 2ieFtTOcD/FCpF5i0om8KxgymQAtkY7JIJABMXnr3XyAFZ/Zx+YL276oT k+BfvMsz7t5oEAWCtMVqM00pC0JLKq2O/8NLoMOVLullk95tVlZPfKEwu byZ0/RL4AdWn10awkwFvltnshdsiOY9fZu6PQJfgkGgdW2SIi4vJ5f1nL VXqPvE7VTrtKGnrlD9dPRJnSv0MVqGobJQWj/D+OsX1z9vu6b76gABw/x iQGN3qhgKvrbyEijfLsKh1dUumVOQvc7VHexYYkuI3+xuxduB2yF1G2Y4 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="299289066" X-IronPort-AV: E=Sophos;i="5.96,259,1665471600"; d="scan'208";a="299289066" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 05:51:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="739763639" X-IronPort-AV: E=Sophos;i="5.96,259,1665471600"; d="scan'208";a="739763639" Received: from smile.fi.intel.com ([10.237.72.54]) by FMSMGA003.fm.intel.com with ESMTP; 20 Dec 2022 05:51:45 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1p7d20-00CtLF-0M; Tue, 20 Dec 2022 15:51:44 +0200 Date: Tue, 20 Dec 2022 15:51:43 +0200 From: Andy Shevchenko To: Dmitry Torokhov Cc: Linus Walleij , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/5] gpiolib: of: remove of_gpio_count() Message-ID: References: <20221219192016.1396950-1-dmitry.torokhov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221219192016.1396950-1-dmitry.torokhov@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 19, 2022 at 11:20:12AM -0800, Dmitry Torokhov wrote: > There are no more users of of_gpio_count() in the mainline kernel, > remove it. Reviewed-by: Andy Shevchenko > Signed-off-by: Dmitry Torokhov > --- > > After 6.2-rc1 there should be no more users of the APIs mentioned in > this series. I believe you probably want to have this patch applied immediately to the GPIO subsystem after v6.2-rc1 to avoid new users. > include/linux/of_gpio.h | 11 ----------- > 1 file changed, 11 deletions(-) > > diff --git a/include/linux/of_gpio.h b/include/linux/of_gpio.h > index 6db627257a7b..39f16a960565 100644 > --- a/include/linux/of_gpio.h > +++ b/include/linux/of_gpio.h > @@ -105,17 +105,6 @@ static inline int of_gpio_named_count(const struct device_node *np, > return of_count_phandle_with_args(np, propname, "#gpio-cells"); > } > > -/** > - * of_gpio_count() - Count GPIOs for a device > - * @np: device node to count GPIOs for > - * > - * Same as of_gpio_named_count, but hard coded to use the 'gpios' property > - */ > -static inline int of_gpio_count(const struct device_node *np) > -{ > - return of_gpio_named_count(np, "gpios"); > -} > - > static inline int of_get_gpio_flags(const struct device_node *np, int index, > enum of_gpio_flags *flags) > { > -- > 2.39.0.314.g84b9a713c41-goog > -- With Best Regards, Andy Shevchenko