Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7406187rwl; Fri, 30 Dec 2022 08:03:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXvGcASGKE7dWHZom/0XdoNnXjcYr3MpGoZ3iD5KsRqVb76nwpdU706RSTqzl/w3ruin0oUx X-Received: by 2002:a05:6a21:3949:b0:a7:9022:5d5e with SMTP id ac9-20020a056a21394900b000a790225d5emr40454140pzc.2.1672416223967; Fri, 30 Dec 2022 08:03:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672416223; cv=none; d=google.com; s=arc-20160816; b=ePoXmMZoGS0c75UbdjpCqACPQREP0sZEGQ6WPcsSl0BnpHwvOdpwg/raG6pIMbM43/ 8tqL4Ra30LL4XkKsHhKdemDTYG7AaoBswbC3RkGycVRgRIqBFRMf7++HIKd/qAuSXJpL R4bTMxv1fL/FQBQNQN/u0Uy6Den8lgMi9ROj/P5e0uYz97FiwkhlHI1estaGNpYTB/5G fDqgl8hKxyN4ga7/Sg/I5+hKxWzciGufoIVJ4GFv3jrnGIrj2xoDfLoaFLjtonfcOo46 SOKEweINR7bT7u9m+IZaY3slW7uX9Y9XYhK9l2QF+vx+wxbUNhkcDyirSk17F3GCMhTy xfMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=o7zb+TjyOCJ5Qv3IrJ07U93Hor1hao+xRRIpVMTYJ34=; b=qKEf9HlEHoXkioETQQxhKdP+MO4yGwqO5v7UhWzclC2gLd5fKmZTG1hToCNASxvIbn Jk1kqPbaqR7d/ngKSnGKeVHy/QYHJvsW8bzMlD5jdZox50RquBe1oSo2poL62J+KQtol 2qeKjufNNHpr9Z1EdOlolo3cjAOiUzFJZx7KH/QueApAV5MkNDZbcQ4fMO3TDa+5JsNE cSUa4wDJ4+Q4m81EyFPiWFPyF5oE//nJX8O4ToS68GLBYLUmGqV15/VlFgGoD0wrYOvc u1wY8Vc4j6PkJxEi8DZzNgs9PxvnfEPYVnsz746dm0a5n2LLLY08R7t4sPTmlEFvrT7y NRJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=sXRZXJyj; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a63cf06000000b004960bccc53esi20814186pgg.698.2022.12.30.08.03.35; Fri, 30 Dec 2022 08:03:43 -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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=sXRZXJyj; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235304AbiL3P4A (ORCPT + 63 others); Fri, 30 Dec 2022 10:56:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235001AbiL3Pz5 (ORCPT ); Fri, 30 Dec 2022 10:55:57 -0500 Received: from mail-vk1-xa2b.google.com (mail-vk1-xa2b.google.com [IPv6:2607:f8b0:4864:20::a2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9DE021B2 for ; Fri, 30 Dec 2022 07:55:55 -0800 (PST) Received: by mail-vk1-xa2b.google.com with SMTP id b81so10254067vkf.1 for ; Fri, 30 Dec 2022 07:55:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=o7zb+TjyOCJ5Qv3IrJ07U93Hor1hao+xRRIpVMTYJ34=; b=sXRZXJyjtqPl1pLLhxIM2Bprko/93NJCyv2iToSKUrcfMjnYapW/R8FMjoDC4muljW PcmInvjhlsB/i6PAMqPcVxgyPvhFNCSaCXxCcdCiYVGeYlLN/rtnWbIsqfw3ixJNphs8 o2E5ImzHY/f1xcxvc68UV541Z+4AUZqfxfWMap9wy+j+Bz6j/0U5K7wyo+Bpr3RmCdx0 OR2NQP/XJ5+EO0NmEEblkiYGbFJYWj2tRmrMjVZRuXb58TDQE4gyd4mkPPdOOpJboEUa 3b9cjZRogQLLKfvJlxf3CE+RQeRdVZGgqxNjt2uwRYZ97rz3ULcu000PiWT3oQfYGGZs 1zNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=o7zb+TjyOCJ5Qv3IrJ07U93Hor1hao+xRRIpVMTYJ34=; b=x3S572JvxRZ6cl4P5vzAluzYWI3OU0xSPP0CnRQD26hGLFCXcgEyZw7KHov1aPd9Ms q+7hym2bqQy/gYzSnAJYNBB5yKWEKKFj53h7i0wV+u3JUcQHsVHgEMkbO8tSbRoPaLrT nZCBzQSn3GbQrPQarzJvohT+DFmFYC/rRgDY6s3P8+A3KMrrRBUBjDM1TT4rt4DY6ZmC JUHpRD0cXtQ/DiybWzKIZD8DWuffSDyRT1PDmn9aUxddsTEJL44Xf/iSOUWFBs9aq4iV oa/pb9E84FdbnPFv6j2GxARQFOmXJtblpXXBYBg0DzsvtLg6K9IXor5YI/akFLrKsFrs 7cCQ== X-Gm-Message-State: AFqh2koOaX1snJOQaYctMBpCAz12V7SRCM4pd5N1Wg5h5Xg7r45+4kws Nd4/Ux8ChZE+yx3mRQ6ZZxS1HQj4l3wRM5/x/qqLPmbB4Ldy1Q== X-Received: by 2002:ac5:c382:0:b0:3bd:e0b8:e350 with SMTP id s2-20020ac5c382000000b003bde0b8e350mr3545220vkk.25.1672415755006; Fri, 30 Dec 2022 07:55:55 -0800 (PST) MIME-Version: 1.0 References: <20221219192016.1396950-1-dmitry.torokhov@gmail.com> In-Reply-To: <20221219192016.1396950-1-dmitry.torokhov@gmail.com> From: Bartosz Golaszewski Date: Fri, 30 Dec 2022 16:55:44 +0100 Message-ID: Subject: Re: [PATCH 1/5] gpiolib: of: remove of_gpio_count() To: Dmitry Torokhov Cc: Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 8:20 PM Dmitry Torokhov wrote: > > There are no more users of of_gpio_count() in the mainline kernel, > remove it. > > Signed-off-by: Dmitry Torokhov > --- > > After 6.2-rc1 there should be no more users of the APIs mentioned in > this series. > > 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 > I applied the entire series, thanks a lot for doing that! Bart