Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3109326rdg; Tue, 17 Oct 2023 05:08:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEldwUJxlyM6kZyIQBFTht1uxNapWVycSioK/gjSbhp9zvTX/hR2swCcp7GsUwejioBmM0x X-Received: by 2002:a17:902:d2ca:b0:1c5:b855:38f with SMTP id n10-20020a170902d2ca00b001c5b855038fmr2869777plc.24.1697544512885; Tue, 17 Oct 2023 05:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544512; cv=none; d=google.com; s=arc-20160816; b=hrP+4MUUmpqLSgLBgPkk8t0qNbECjI5diMUXO1j6z5kDD6almSxRAhBtFc4msdk6e0 eyBMDgHjMs6B1AriZf+j60jNJfPdV0bnUMAXvBQzWQR4fu0qdWWJBCeI8TL+YR42hzPw Qnhnd+pSoVlRSD0e3edPQBXlOSbLIavYTBSj/wmXxMazZArHEfV4ixKRr53LRAh5wnz0 WZ9FxD9Q4MU7Nx3g7Tf7JOe/3WCBxEcLIRv97cF/DN49Cw3nIk9ssBnOSnmC2UqxuQG/ UIyiKqq7lO2rSdST2XtxdI1X53WY46jn5JCwcyQGnsEctCdxBPbc5g3mee58GJvl66dl Gsfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZmbOot5RLrw4dhGM35wwQDK66NpZcPzXz+VcMMZhqQw=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=0RQ1QC4by6N0ocSo6hG6nCi89dIWKnvoW42L8lyXx7jSuz+c1hDGBdEmc0MAv4ABBO EWPjrBzPpYWkw1aoCnKVXUb+SElb5jui0Usl8uSToTOaq8+VXedJopf28FfHlT268U3S 8GWgB0PM/EoyryM7WKr0KEqbRiy5HmckAVncUctt9UoLPLmGhZEt6zb1hKiiruDYCBOn xHmzEmXIhdADeM5D2puhBXwkDPlQk+BaDar2xH8ncYD/9eZ7eGWEzEhhLfJNHPpvNFOl vYDfmbcyzARlihvmeV22gKGacQzF6qTobdHmeiktytPW91OSxrto0COaxO/8i7j2nEpp L+1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=AR6rAWDO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id z17-20020a170903019100b001c76a2ebda0si1640917plg.502.2023.10.17.05.08.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:08:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=AR6rAWDO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 28E408035361; Tue, 17 Oct 2023 05:08:28 -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 S1343663AbjJQMHg (ORCPT + 99 others); Tue, 17 Oct 2023 08:07:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343780AbjJQMHD (ORCPT ); Tue, 17 Oct 2023 08:07:03 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DA4F1FC4 for ; Tue, 17 Oct 2023 05:05:31 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2c5028e5b88so59482961fa.3 for ; Tue, 17 Oct 2023 05:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544329; x=1698149129; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZmbOot5RLrw4dhGM35wwQDK66NpZcPzXz+VcMMZhqQw=; b=AR6rAWDOWbPt1AtkTSN3PTMBPkj1L2qTPmKSbC9w0hTqO3CZlDkRQk3iFVCDT5gwLx ETKyUcbJrqsrrVE2pjFKzSh/j7Vhu2tFcSSd+O+oKrpBdxSfCni1365N9URaBGeDgyK5 SliNmYGXGX/6G0Hn4KptzXL5RJXDPkkOsg8KRcZvh0kXk73gvJlmcsOEDv/61ldsVhlC szomGA2dGTqt92j3MytV0lVW9sDtI1zlc3eA7n5AY5us7Br3m8YU4f0YgX0WMKFu70L/ thDl3wFILRP+G3q/+7h1/RcjFxyh2p9bvHfqSwjh1tq754bxxLBkLrELf7vY0CW5UrOW vumg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544329; x=1698149129; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZmbOot5RLrw4dhGM35wwQDK66NpZcPzXz+VcMMZhqQw=; b=mWXxcX6pKmNf0h97becFPWwTfmukFmCk8UndF/Y30eVptzC/Rt2PRSfvVuvCDpm6M5 rsMrtlsGd9McRhwc1P866atY6MYqPlEvXlEj+K+5eVytTsKdgOx6YDVKWQ2YmDKpjuFJ ycwec8grncdE7bZsEXOldSW6+kpT0PH4FWkb0G1w1mlD7ev6huHiQO1DES9GqKALvfwF q8w8fRi1YTYV2IknsomcZD9AOZsqZGgbHCYqphhL/EVI6ISN3epl82h9/u4uKh9GP9Cg Nsz6UiSvBipWKASGEKbrIk8hSO5K+AgfPgWkTkBdweR6aSzfh4GH1zaitJa0xWsbOcyS 4AOg== X-Gm-Message-State: AOJu0YzlGmpE4Amjr+gxYKv7CatlmvNzlJ2SpV74PPztmNRcLI/hN1Sk 21HInxcFf4GaPTggUXPKHEnfzA== X-Received: by 2002:a05:651c:314:b0:2c0:21b6:e82e with SMTP id a20-20020a05651c031400b002c021b6e82emr1509394ljp.4.1697544328832; Tue, 17 Oct 2023 05:05:28 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:f1ee:b000:ce90:ed14]) by smtp.gmail.com with ESMTPSA id a2-20020a05600c224200b00405442edc69sm1353859wmm.14.2023.10.17.05.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:28 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 42/73] treewide: rename pinctrl_gpio_can_use_line_new() Date: Tue, 17 Oct 2023 14:04:00 +0200 Message-Id: <20231017120431.68847-43-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231017120431.68847-1-brgl@bgdev.pl> References: <20231017120431.68847-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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]); Tue, 17 Oct 2023 05:08:28 -0700 (PDT) From: Bartosz Golaszewski Now that pinctrl_gpio_can_use_line() is no longer used, let's drop the '_new' suffix from its improved variant. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpiolib-cdev.c | 2 +- drivers/pinctrl/core.c | 4 ++-- include/linux/pinctrl/consumer.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index 54ee075410db..02ffda6c1e51 100644 --- a/drivers/gpio/gpiolib-cdev.c +++ b/drivers/gpio/gpiolib-cdev.c @@ -2287,7 +2287,7 @@ static void gpio_desc_to_lineinfo(struct gpio_desc *desc, * FIXME: find a non-racy way to retrieve this information. Maybe a * lock common to both frameworks? */ - ok_for_pinctrl = pinctrl_gpio_can_use_line_new(gc, info->offset); + ok_for_pinctrl = pinctrl_gpio_can_use_line(gc, info->offset); spin_lock_irqsave(&gpio_lock, flags); diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index 881845395885..20f4b655aa08 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -755,7 +755,7 @@ int pinctrl_get_group_selector(struct pinctrl_dev *pctldev, return -EINVAL; } -bool pinctrl_gpio_can_use_line_new(struct gpio_chip *gc, unsigned int offset) +bool pinctrl_gpio_can_use_line(struct gpio_chip *gc, unsigned int offset) { struct pinctrl_dev *pctldev; struct pinctrl_gpio_range *range; @@ -781,7 +781,7 @@ bool pinctrl_gpio_can_use_line_new(struct gpio_chip *gc, unsigned int offset) return result; } -EXPORT_SYMBOL_GPL(pinctrl_gpio_can_use_line_new); +EXPORT_SYMBOL_GPL(pinctrl_gpio_can_use_line); /** * pinctrl_gpio_request_new() - request a single pin to be used as GPIO diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h index aa3a7a7ca52d..4f9ead7f65d2 100644 --- a/include/linux/pinctrl/consumer.h +++ b/include/linux/pinctrl/consumer.h @@ -26,7 +26,7 @@ struct pinctrl_state; #ifdef CONFIG_PINCTRL /* External interface to pin control */ -bool pinctrl_gpio_can_use_line_new(struct gpio_chip *gc, unsigned int offset); +bool pinctrl_gpio_can_use_line(struct gpio_chip *gc, unsigned int offset); int pinctrl_gpio_request_new(struct gpio_chip *gc, unsigned int offset); void pinctrl_gpio_free_new(struct gpio_chip *gc, unsigned int offset); int pinctrl_gpio_direction_input_new(struct gpio_chip *gc, @@ -68,7 +68,7 @@ static inline int pinctrl_pm_select_idle_state(struct device *dev) #else /* !CONFIG_PINCTRL */ static inline bool -pinctrl_gpio_can_use_line_new(struct gpio_chip *gc, unsigned int offset) +pinctrl_gpio_can_use_line(struct gpio_chip *gc, unsigned int offset) { return true; } -- 2.39.2