Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4494565rwj; Tue, 20 Dec 2022 10:51:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf7igzxEmNGMoqgJ1U9GFppv3+z7pRgJ3jaWI4WV9qp3tZP9WPMNgsakkhDTmQFEY6CH/V2t X-Received: by 2002:a17:902:f211:b0:189:8f0c:d314 with SMTP id m17-20020a170902f21100b001898f0cd314mr43244290plc.39.1671562276436; Tue, 20 Dec 2022 10:51:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671562276; cv=none; d=google.com; s=arc-20160816; b=jxBUaRXf/QNVeEGnbNevWnCnk+VxVYPD2KoeYygtCYN0YO2XCffLok93VMPYH3K/+0 3/pkuRiWQdmBxex4i1ef6iVmkS4gKQMN8TjYg+vmfad7BdTnl2qg+7Sodz8On54qLler wh87aAtD1Ld3Ab7Q92Eyxwfd+EJZPxrxtTE8ujvJ4SpQ5wPqDzDVcglIzweomRCbrIST qLJOLNzv4k/QOVkcaqq2f5icCGnpO+aTFSxr+DyjR2x5rO/OrVRMdbLCUy5gDcQKSTsT tNsowpExFKXHdUNv1trwZti/+UsKL4ChbKVBW1gDKpIQsfHRYRM/uX/tylKwFdE0A7lx RWRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=18M+bnidS9gbp3O+Lgyd3nc6n99jiuwuByOHfklyIeY=; b=Ungx8V3prq0V8JzN/O4md9BKRd4lJvnPU4SNM6TxTjp6QeaEklzvJIpfPISFliqL0I bsJpA/nerfdgSiS0doLOBW8k6Rvo8+kbsXABWZEzimpCO4xX7ROOkUi63ZOE5O/IZVRu xrd/0AuF+F/GuKXlyc6ybIAOZ2/Uf5GvPGC+XJDn+TPjYwiogGsdfI0oS0QSu/ad/MXx A+ZQGZgH5Ceenx/XEQwx2BmFzHlAJG26brRcA5kVx6b5Jsad7dfM6Pb4d4P+9wDllI2V l6JinNQDK6RoYJE+0GL4zFFtaYOaevApJPxf+Y9eC3lQsRmVpMBFiIZsMoAQDbhPm+Nt 3qZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jJMGzq9o; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a630c08000000b0043c8ce98a7bsi13909134pgl.802.2022.12.20.10.51.07; Tue, 20 Dec 2022 10:51:16 -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=@gmail.com header.s=20210112 header.b=jJMGzq9o; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233028AbiLTS3z (ORCPT + 69 others); Tue, 20 Dec 2022 13:29:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234126AbiLTS30 (ORCPT ); Tue, 20 Dec 2022 13:29:26 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5315B1E3CE; Tue, 20 Dec 2022 10:29:10 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id t11-20020a17090a024b00b0021932afece4so17338853pje.5; Tue, 20 Dec 2022 10:29:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=18M+bnidS9gbp3O+Lgyd3nc6n99jiuwuByOHfklyIeY=; b=jJMGzq9o67HGY4eYH55ebzeww9nPj/VgiZQTWEh3LKIy5Lwz8cRHWZ/AU1g+GnChgs 95U8jsf0wlPDY5nZjo+wK63g0G1+ggSuiSTvLdJ73yaggyqsRxcJe3Lici10EehClS9J OGmZWPSA+FMgped0pHPpReRwR6egbFXws+uDoMDzzF4WHHgW2jb5gRb2jg+H0X+E2eHd /buajIwTXzYsoCykxXF8QT0ijiZQqAPbvqIPIsRsukFhc3/Y3I4MMobqhr+24G3qqH9y DqVeArmGKT0m+aCGXirlhN9XkCpSXOP0SOFlxa/dNjgtxwsweC93HeteFOyzf9wzWqIl ZH7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=18M+bnidS9gbp3O+Lgyd3nc6n99jiuwuByOHfklyIeY=; b=tkq06MvBSjZQT/KTS9BHXQmkmiWdaLUUGqLqre+9Wj1SnkIbmiIdfrx5kPhFa0YWmR iuid0hhIcVP1r7Hfvvk7lZGNGLD++f/98q/54QJpnoF4Orfkuo4gXAQKZfgQ7x6SurM2 7AxcOrPYWqyEPw5jNCWNV7TgWilQUwrFyaCZWYYrQ9AFOHd5E9C41bwwfiRiGBHTWdgV N/JyV95bS/K1rxo+CYr0F4GNLWYkQvPO06lb97UwEpZHb21/4iQUGViClSFvNeia+/Gu vphLVB8TmoDhcbow2t7TSoVTtXgU2sX64HuIgwkh9LBx2OfCTPi63ex6QaLG26Y37swO 157g== X-Gm-Message-State: ANoB5pkhR1D6aqBVEfrZ6VMvAYeNlo6OhJ46bOy4kmmvgijXdbMD2WgQ r3aF1+oVrbALdeJLYfkSRnQ= X-Received: by 2002:a05:6a21:158a:b0:9d:efbe:a116 with SMTP id nr10-20020a056a21158a00b0009defbea116mr29986227pzb.38.1671560949650; Tue, 20 Dec 2022 10:29:09 -0800 (PST) Received: from google.com ([2620:15c:9d:2:7206:404e:4820:d175]) by smtp.gmail.com with ESMTPSA id a9-20020a170902710900b0019117164732sm6014437pll.213.2022.12.20.10.29.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 10:29:09 -0800 (PST) Date: Tue, 20 Dec 2022 10:29:06 -0800 From: Dmitry Torokhov To: Andy Shevchenko Cc: Linus Walleij , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/5] gpiolib: of: remove of_get_gpio[_flags]() and of_get_named_gpio_flags() Message-ID: References: <20221219192016.1396950-1-dmitry.torokhov@gmail.com> <20221219192016.1396950-4-dmitry.torokhov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Tue, Dec 20, 2022 at 03:58:11PM +0200, Andy Shevchenko wrote: > On Mon, Dec 19, 2022 at 11:20:15AM -0800, Dmitry Torokhov wrote: > > There are no more users of these APIs in the mainline kernel, remove > > them. This leaves of_get_named_gpio() as the only legacy OF-specific > > API. > > ... > > > - desc = of_get_named_gpiod_flags(np, list_name, index, flags); > > + desc = of_get_named_gpiod_flags(np, propname, index, NULL); > > I didn't get it. The commit message and the subject says there are no more > users of these APIs, why is it still here? How is it compiled? gpio vs gpiod strikes again ;) We are removing of_get_named_gpio_flags(), but of_get_named_gpiod_flags() is a local helper in gpiolib-of.c and is still very much in use there and I have no plans removing it. Thanks. -- Dmitry