Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp768769rdg; Wed, 11 Oct 2023 05:13:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEupEWxChoAUPZuG4Ae+lw/C83+VefAXKBIqg0gtgG6iX4K3KIWkCYL3+rYY6KiRWU3hNIv X-Received: by 2002:a05:6a20:12c6:b0:161:3120:e865 with SMTP id v6-20020a056a2012c600b001613120e865mr22337128pzg.52.1697026380933; Wed, 11 Oct 2023 05:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026380; cv=none; d=google.com; s=arc-20160816; b=mZVc0jqxrAb2E+hYSyuAJ/OiefEXkU5h581FZWYls9CjfLQ2k7uUz6VJtO2cAeyvgB usIRxNNe9egD/IJWbZD0PcpYmOxRm1/zkcIgck5p+vmndtvxN4+iaWB8lgbkwUxLMYFd HblByl1T/UhCDNZxjJ8tmdKn2LFaMPEPt7a/kIgRNiSWf5NiDqK8L83v5JGj7SM7qwVu +sAnmWSqD3yDj7g6+/IzXzi1+jZrPoLa1RxM/KxqqOZ0NHqTLRMWCCXg+KhsLpsEEhZZ 5XkRMZLwgtGT6YXvsFZ2MJzQR3HmF0ooduDSOLylyJQj+fo8i2YPXF+m45vObDl2cXvT Z6YA== 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=eLr8az2DF4wzR/3h2HT0nDrMk6XnIw1qWiC4OXYx06k=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=ExQnD2WcRDEdyEYpPDm/mjNNJKNiYxm3FfQq/w3WdKf7j5Xv325kFxUJZB8Q+PBHNK PZd9fDwaxxer7SDJYZCdPHnIkQUWF3i2Q5jwCr036+JFY7CKas9lB0eefIslNJ0yKKqV faxCe+GtlOsTjEsYLfeaA4exygMysMQHabBzf4aFkstle46sKVx+R6JTaWUHtk5ZRJR8 fSNIbRnVexbATancw9Gz+X691aR6t1q34mKdNCxjLJWuUhlko+641i0jL2OxQajycb7n E+tZy4AOiQvLn5PZcas2cx3yH7h4O1z8Gmfn94grjr0vpvgyZBPw39mtYfpcxSK7WvCe nB9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=s2bPdBFh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id e8-20020a17090301c800b001bdd35033f7si15515409plh.366.2023.10.11.05.12.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:13:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=s2bPdBFh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 01314836D615; Wed, 11 Oct 2023 05:12:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346790AbjJKMLu (ORCPT + 99 others); Wed, 11 Oct 2023 08:11:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346804AbjJKMKh (ORCPT ); Wed, 11 Oct 2023 08:10:37 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82B6DB9 for ; Wed, 11 Oct 2023 05:09:48 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-31c5cac3ae2so6117549f8f.3 for ; Wed, 11 Oct 2023 05:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026174; x=1697630974; 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=eLr8az2DF4wzR/3h2HT0nDrMk6XnIw1qWiC4OXYx06k=; b=s2bPdBFheeHzXbfVzwIuAlmfSgOD7HjgZbn9JRs9BXNYYrBQfMEO70Ad40viokEoU6 eFg2L3V5UG8EqHZbN/Zah/Yxboe3EI22aWfmyHLRoqAvC6RztBQT5ePC6GTDpqZDHZng CLA50ubS6oc6/Qu8ift9Ip9B3sGZwruyJnftYbokfw+uTZSovg4XnzMbkhKF6oFApYhC Mh9MIBsz0HrFqYp8kF3P7nnOEbv2DM096yzQwEgOsoihgJSjPy7OkE6AfauEdd5zY3pC R6HyOkxLTmGwQAgQU7kfZ9kYktOhFOjxsk9EeG0JVTPv2B7Jh7KzfFyBHS5nzIj+OEoe LVbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026174; x=1697630974; 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=eLr8az2DF4wzR/3h2HT0nDrMk6XnIw1qWiC4OXYx06k=; b=r3S+ylkF41hW9aPFuI9ti27svjIquThxalaBv5YyFm07gfbACMSPG77xx8AoZPR7Gj FJuEw8EjRPIfDgok4RwBvlPEmZBy4JRrs2n4aLMMzlHekgAKbUR6r73p+qkH5lQLoHkh pNmIEwBdFv7zRs2I77BvyJvwjkpCoS14dk9T5DcbJIHlVRycfat6GGdwmg+V/ET1cZUi 8zkR+jyQlYD6OpJmt2FDoFT7iHPaevqY3UkTYR5HUttj44Jrg4ZuT4n249fptb45OHj1 bsoTwLhwl+6j7D6e80PeuCJYRG+SrrzrC/Z8QhVYnHZulqiAlVzFmsuxkyW83h+qbsqo JeJw== X-Gm-Message-State: AOJu0YxXGSw0QUhjSQX9gbSpLRcGrXOI2MKns3vRltLQNQlwAf8lmfQO Cp0xrN+MENzvA++m1zUsLXgK1g== X-Received: by 2002:adf:fc4c:0:b0:319:785a:fce0 with SMTP id e12-20020adffc4c000000b00319785afce0mr18642562wrs.26.1697026174482; Wed, 11 Oct 2023 05:09:34 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:e551:3946:26fc:f94]) by smtp.gmail.com with ESMTPSA id w21-20020a05600c015500b0040652e8ca13sm19012253wmm.43.2023.10.11.05.09.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:34 -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 v2 30/62] pinctrl: remove pinctrl_gpio_can_use_line() Date: Wed, 11 Oct 2023 14:07:58 +0200 Message-Id: <20231011120830.49324-31-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231011120830.49324-1-brgl@bgdev.pl> References: <20231011120830.49324-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, 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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:12:54 -0700 (PDT) X-Spam-Level: ** From: Bartosz Golaszewski There are no more users of pinctrl_gpio_can_use_line() so remove it. Signed-off-by: Bartosz Golaszewski --- drivers/pinctrl/core.c | 12 +++--------- include/linux/pinctrl/consumer.h | 1 - 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index 13a6fa85c462..024e3825fa98 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(unsigned gpio) +bool pinctrl_gpio_can_use_line_new(struct gpio_chip *gc, unsigned int offset) { struct pinctrl_dev *pctldev; struct pinctrl_gpio_range *range; @@ -767,13 +767,13 @@ bool pinctrl_gpio_can_use_line(unsigned gpio) * we're probably dealing with GPIO driver * without a backing pin controller - bail out. */ - if (pinctrl_get_device_gpio_range(gpio, &pctldev, &range)) + if (pinctrl_get_device_gpio_range(gc->base + offset, &pctldev, &range)) return true; mutex_lock(&pctldev->mutex); /* Convert to the pin controllers number space */ - pin = gpio_to_pin(range, gpio); + pin = gpio_to_pin(range, gc->base + offset); result = pinmux_can_be_used_for_gpio(pctldev, pin); @@ -781,12 +781,6 @@ bool pinctrl_gpio_can_use_line(unsigned gpio) return result; } -EXPORT_SYMBOL_GPL(pinctrl_gpio_can_use_line); - -bool pinctrl_gpio_can_use_line_new(struct gpio_chip *gc, unsigned int offset) -{ - return pinctrl_gpio_can_use_line(gc->base + offset); -} EXPORT_SYMBOL_GPL(pinctrl_gpio_can_use_line_new); /* This function is deprecated and will be removed. Don't use. */ diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h index c95c13983376..105a4b0c1c14 100644 --- a/include/linux/pinctrl/consumer.h +++ b/include/linux/pinctrl/consumer.h @@ -26,7 +26,6 @@ struct pinctrl_state; #ifdef CONFIG_PINCTRL /* External interface to pin control */ -bool pinctrl_gpio_can_use_line(unsigned gpio); bool pinctrl_gpio_can_use_line_new(struct gpio_chip *gc, unsigned int offset); int pinctrl_gpio_request(unsigned gpio); int pinctrl_gpio_request_new(struct gpio_chip *gc, unsigned int offset); -- 2.39.2