From patchwork Thu Oct 5 02:58:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 13409721 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A7A9FE936F9 for ; Thu, 5 Oct 2023 02:59:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rzmtcHzvdTejmR1oBgyT/Q3vjsKoV3xGwrzHYmb6BVQ=; b=gWQEnGpg53HpY1 zFrytVYn2Rh4Y02Fos4Z5t5ZTZ98ER4pqQKEZ/CrN5iAC123JgyEQH7K+zEBJZasmZ5m/0U+83ED2 Fi+/fo5sm9w3svRuzZTfqUCFXlaBil4ISVV3fMq0cjcp1XOPPXcQTGzmN/Yj5v/xAjb4MNsm5u4sc 707iWJcYzAWpnIwj7QglkDiGkKrV6SmiHtL3BTqGqLHC5ys8HLvJhwJzd1X6dQsnwVpdPfI8k5F1j DpMibP24k5P+kMXIqhrPDfPD62lOeJtd6Il6YqgEw+1ZZAAXaOhCy1/4+x4erOPTLbWrlbnkEkqAp c5ZFmrHxDhQtZT2+0nQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qoEaI-001Gpa-2y; Thu, 05 Oct 2023 02:59:30 +0000 Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qoEaG-001GoP-0u for linux-arm-kernel@lists.infradead.org; Thu, 05 Oct 2023 02:59:29 +0000 Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3ae473c0bd6so76148b6e.0 for ; Wed, 04 Oct 2023 19:59:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696474767; x=1697079567; darn=lists.infradead.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=TSbRKsYb8q8GitmB/U1RL+XJyPpceXOp7I/10Xz1sb8=; b=GSqkdGRIv2NYn+J9iRCbFcwQEBh8UvRoe6xDcJ1Vq0PYOcPSWpwAa65jXsqouASw04 Bml6RgNdJfxDzLmsUVCM+be0k21SOHoRDEorWrJ45OyshfEehpdtZ8X471kHcOv28gyd 3GveL/HSQaxsjrmk32at72MFeJc9LRJDWG0JmrukIFSRFVRpoZ/Ix5UKumHGtGgABH4C v4oQoDhNNXgeRe4bcr3XkSz6RwK7N9JQyF1gCzKlC2j4hbVWR0345ZwSbHe7yVK+DHJa A9ZFxYCe4RG49V1Y+0Ip+Q09FDKK2NQYS04qF+gfKjH/pI99fHCLmyioWdKtqNZuALVL OYjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696474767; x=1697079567; 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=TSbRKsYb8q8GitmB/U1RL+XJyPpceXOp7I/10Xz1sb8=; b=kTMAD7sYLXqybU/HG+QQydGZZ29lxiqci2ndjBtXPCxkfHBCQpT+rC8MyZu3Sv290n KNy4nbSqUX0dJUK0sQR6fkr4vZWE1Jft7NFXhqus01RBL+dKGcP0ngzR4gzOEduE4Laz cfFe//AXfceD0HsuPyHbXeZhXn93tpmBbOYGTA8qAwwyiOvpHB2bV461zIaFSzPN8qB7 aVfzyPrt+WqEqwEPhNmQyiArxvIbXrCR6M9kKEHsltEITP8WyH1tjtqK5HRf/5j/umrS TIBy/i+sEHECAVRhEXpINNKHmvYw941X2WBt6tDICMKKiEd9bLdji7QpctrdnQ+c4UfX RfMg== X-Gm-Message-State: AOJu0YzkpufJUu1hkL0xpAJjKDcUpIjivFhtPa0ugXTEFo4iRGbF0ZqH VnwKPguvdapw2RFoAi0J+JTX2A== X-Google-Smtp-Source: AGHT+IEvgr4xZLoO3AM+An1x16yJUdYmGeTqCDtyfPw8q8eOIK+ezaH2/Gf3R2hl6ENX1z8p9dBrGw== X-Received: by 2002:a05:6808:1a27:b0:3ae:5e6a:5693 with SMTP id bk39-20020a0568081a2700b003ae5e6a5693mr4930128oib.0.1696474766819; Wed, 04 Oct 2023 19:59:26 -0700 (PDT) Received: from octopus.. ([2400:4050:c3e1:100:a16d:fce2:497:afb7]) by smtp.gmail.com with ESMTPSA id b18-20020a637152000000b005782ad723casm269265pgn.27.2023.10.04.19.59.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 19:59:26 -0700 (PDT) From: AKASHI Takahiro To: sudeep.holla@arm.com, cristian.marussi@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linus.walleij@linaro.org Cc: Oleksii_Moisieiev@epam.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, AKASHI Takahiro , kernel test robot Subject: [RFC v2 2/5] pinctrl: always export pin_config_get_for_pin() Date: Thu, 5 Oct 2023 11:58:40 +0900 Message-Id: <20231005025843.508689-3-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231005025843.508689-1-takahiro.akashi@linaro.org> References: <20231005025843.508689-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231004_195928_320690_B6CC3C0F X-CRM114-Status: GOOD ( 12.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This function will be used to implement a new pinctrl_gpio_get_config() outside pinconf.c in a succeeding commit. So make it always visible to avoid a kernel test bot error. Signed-off-by: AKASHI Takahiro Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202310021320.gYfm1nLQ-lkp@intel.com/ Reviewed-by: Linus Walleij --- RFC v2 (Oct 5, 2023) * new --- drivers/pinctrl/pinconf.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinconf.h b/drivers/pinctrl/pinconf.h index 694bfc9961fa..068089b199e4 100644 --- a/drivers/pinctrl/pinconf.h +++ b/drivers/pinctrl/pinconf.h @@ -31,13 +31,13 @@ int pinconf_apply_setting(const struct pinctrl_setting *setting); int pinconf_set_config(struct pinctrl_dev *pctldev, unsigned pin, unsigned long *configs, size_t nconfigs); +int pin_config_get_for_pin(struct pinctrl_dev *pctldev, unsigned pin, + unsigned long *config); /* * You will only be interested in these if you're using PINCONF * so don't supply any stubs for these. */ -int pin_config_get_for_pin(struct pinctrl_dev *pctldev, unsigned pin, - unsigned long *config); int pin_config_group_get(const char *dev_name, const char *pin_group, unsigned long *config); @@ -74,6 +74,12 @@ static inline int pinconf_set_config(struct pinctrl_dev *pctldev, unsigned pin, return -ENOTSUPP; } +static inline int pin_config_get_for_pin(struct pinctrl_dev *pctldev, + unsigned pin, unsigned long *config) +{ + return -ENOTSUPP; +} + #endif #if defined(CONFIG_PINCONF) && defined(CONFIG_DEBUG_FS)