Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2582143rdb; Wed, 4 Oct 2023 05:53:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE5APamqVTwZk8mMOiM+R6vh8ZomKw5R6lCaCVGdgQOHsySWo4bEeY1h0tptzWx4vDJNWJO X-Received: by 2002:aa7:8884:0:b0:68a:5773:6319 with SMTP id z4-20020aa78884000000b0068a57736319mr2698461pfe.11.1696424025851; Wed, 04 Oct 2023 05:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696424025; cv=none; d=google.com; s=arc-20160816; b=xUKENLbZhNRx/zz5e0Vpabjk9hjCnv/dDk3YTGYLwF+/148JoeMG2z63uZ9OQCq599 5OC70Jk7ur+Hzw2gbk7j4aVMLegWedciUI4TBFHk4cd4hSmw13H6OC1fGIgWa6iWoxhK H+r33Ft07gz93climEIGFzSB6IEylLyidoJ0XHHI6QXFeYrRI/9Ke6m+pzoBwSQ7Utj0 HA2ac8IqAkmGde7EUIKgzxuRaIRq4cctHUEuC+nJGtT1eb6/lEoBE8Wyr4PwbbLH2j2F yiNY6rAeKholr7wzoTR88xbTBtnXro3Uwvo3/WD8y+j5ZYXkNnLCdPsUMdP1pJisZdAk UZsA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=2dyGrudYk6ip5/fIEC1H31KF61vTXg9WudCfURtwMcs=; fh=oR8ZQ0z+ZlZlaV2+jyZwpaPNan+XZoJkFqKcBuPZX9o=; b=erh5AP5LeeXLnQjqnXhaHRpuSBOxl5msx4Rxl9r8XyhwFLT17JrAEgoYXXHcp6MKjy dSzk9s1G3vPr2AAQ1NLEbbNfrTx6zgtLVNf8KkzYbpadMn42aI1Qk6OSLAI8bZGqYm9y 6eOdjblAxbdklAc9WyyGS/ZtYEo2FkX/ZerVLganinDiYZUWRkXutXZBu11XbqFKbf6w E6HCmqzs6OZsJBeEFcgkGZd8uJikyBOZtVgnfKDdv9sp09UhG/73M/ws/xYL/2H3Y16/ YZfIyrak5bPpRG2LylcAy6io0yjnEx2NUlQ/xKb2sgtamZw7gTutRqLgO9xnrPhyERED ZumA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id k5-20020a056a00134500b0068e2dadcfc3si3949708pfu.48.2023.10.04.05.53.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 05:53:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2F84381AB522; Wed, 4 Oct 2023 05:53:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233224AbjJDMxV (ORCPT + 99 others); Wed, 4 Oct 2023 08:53:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233133AbjJDMxV (ORCPT ); Wed, 4 Oct 2023 08:53:21 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 257FE98; Wed, 4 Oct 2023 05:53:18 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10853"; a="362516584" X-IronPort-AV: E=Sophos;i="6.03,200,1694761200"; d="scan'208";a="362516584" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2023 05:53:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10853"; a="867359206" X-IronPort-AV: E=Sophos;i="6.03,200,1694761200"; d="scan'208";a="867359206" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2023 05:53:16 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC1) (envelope-from ) id 1qo1NJ-00000002m5B-1xWd; Wed, 04 Oct 2023 15:53:13 +0300 Date: Wed, 4 Oct 2023 15:53:12 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH 34/36] treewide: rename pinctrl_gpio_direction_input_new() Message-ID: References: <20231003145114.21637-1-brgl@bgdev.pl> <20231003145114.21637-35-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=0.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 04 Oct 2023 05:53:43 -0700 (PDT) On Wed, Oct 04, 2023 at 03:49:52PM +0300, Andy Shevchenko wrote: > On Tue, Oct 03, 2023 at 09:08:41PM +0200, Bartosz Golaszewski wrote: > > On Tue, Oct 3, 2023 at 5:16 PM Andy Shevchenko > > wrote: > > > On Tue, Oct 3, 2023 at 5:51 PM Bartosz Golaszewski wrote: > > > > > > > > From: Bartosz Golaszewski > > > > > > > > Now that pinctrl_gpio_direction_input() is no longer used, let's drop the > > > > '_new' suffix from its improved variant. > > > > > > This and other "treewide" patches in the series are redundant. Just > > > name the functions better to begin with. > > > > I don't want to rename these functions. They have perfectly fine > > names. I want to change their signatures and the renaming part is > > there only to make the reviewing easier. > > So, then you can make them macros and based on the type of the first argument > use either old or new API, which you then make public. The all noise with > "_new" is not needed, really. To elaborate: First patch splits existing functions to the macros that use _Generic(), and old ones become renamed only on the implementation side (to _old or whatever). Then you add a new ones and apply them to these macros as a second (default?) choice. Then you convert users one-by-one or whatever preference is, and at the end you kill macros with old functions and rename "_new" again in a single place (pinctrl core). -- With Best Regards, Andy Shevchenko