Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4587499rwj; Tue, 20 Dec 2022 12:14:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf6YiSjynAN/97Jguq63GQbQKMXaKD7lo6XauSRRqMgWgGTghxVEOpF3DoABpmyZ07f9YB4T X-Received: by 2002:a05:6a20:441e:b0:ac:16ae:1082 with SMTP id ce30-20020a056a20441e00b000ac16ae1082mr82318560pzb.32.1671567250366; Tue, 20 Dec 2022 12:14:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671567250; cv=none; d=google.com; s=arc-20160816; b=X+HY8XDL99kKWKyvh8gYw/8J5W/vtWCJgw+fYA7DJO44Zq0Rb1A6lzmXXUzqEfGZza WQ7TMy9B6fbz21llm3cOvX3zB8ylZ86kTdK0CWO0grvcdH3wb/mgexsofW/P4nSp1RM8 Nds3mFk1IzvlUO4YHAZAfyELcthveIwWbNJ+w6XUkp5dC2TZygb6CdB9zO+7KDkPXAdZ wnhA0v6FSZDUSlPC+EFUOuevDc+Jz+UwrpRsJ7HHGfjpRWgrXImYGjH3C3rZyrDmkhee OAHKRrUbwei4APKCGrg0mj2mS3WeN2bamdmwDSwlW93ZK1k5xiJC9NeW9zq/O2hFwBOD 951g== 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=5FfmimfR6ixT3tg0rZzZyEy/X++d8LleLWLiHI+3Iac=; b=aizb+/Y5dcmfjW5VL0tABuL5LE/c/TQEer6qheuWoNh4xN/qMeOSTBTDtT0RpwkloQ 7+xzLszkqYt+ZuDDp9Zefi9jxz6AeFjJneN6FLA0tC+4rcT82ZGbyaWOHhYOCEmLd7ME I8qpndMIMeCsIx4D1Y5e8ly0N3iklB6QxMhYcE4jagqlkkjziK+L/iq91nz9ospgL4mL QZMIgoW2e4/5agwd4fm2ZyuTXp5f/tlnbba9mpWmH7/swEXHyCSqOVb8uKlfxi91t+lK y83bkja04llHg7Z99RfPhQ1I5wKf/0sMSfQkdtTh8XIQvLqpENU6g2lYVrzftBjiEi6v yKXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ambKB0C5; 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 y65-20020a638a44000000b0043c05df34c0si15496882pgd.411.2022.12.20.12.14.01; Tue, 20 Dec 2022 12:14:10 -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=ambKB0C5; 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 S233795AbiLTTQi (ORCPT + 68 others); Tue, 20 Dec 2022 14:16:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229791AbiLTTQe (ORCPT ); Tue, 20 Dec 2022 14:16:34 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEF53E1A; Tue, 20 Dec 2022 11:16:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671563793; x=1703099793; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=97uhtqzxN7mmkjSYc5PmGDzPOu4jwieiIShfsEoanek=; b=ambKB0C5M1n6OXT2NSmJzTc6g+Ufd6n45Zjqu7SOg/swKAxsP6TZWxJC i/0uLxfO/u0GzGiyEy1hyDKoKgUECM0P0psIa5PBPjVJD+mgOy1XLGUQ9 P0DdRSG5jtC8IjashR+G/eLSFLdYiNcRuxx8zp6QeiigvmJ4Eb2QraOfY wSqJZNhUd8wWsWb4ML8kkZlsNZktdsPiz4rnWZS+lz3Kzm1UAxdxEKkRz Gs3P2AmR2mUBwTX8WlEBG12DDXBM8phMMG8mz8EyCJTzvGVHTQ6+a5ddT hjRLQlYG+FSW1z51kQoNs8fVnnzMvOEQ0Libr1S6VAcSeVxMlMQ93aaR1 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="320870894" X-IronPort-AV: E=Sophos;i="5.96,259,1665471600"; d="scan'208";a="320870894" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 11:16:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="719690789" X-IronPort-AV: E=Sophos;i="5.96,259,1665471600"; d="scan'208";a="719690789" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga004.fm.intel.com with ESMTP; 20 Dec 2022 11:16:31 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1p7i6I-00D9CL-02; Tue, 20 Dec 2022 21:16:30 +0200 Date: Tue, 20 Dec 2022 21:16:29 +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 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: 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Tue, Dec 20, 2022 at 10:29:06AM -0800, Dmitry Torokhov wrote: > 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. Right, thank you for clarification. Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko