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: Takahiro Akashi X-Patchwork-Id: 148711 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2016:b0:403:3b70:6f57 with SMTP id fe22csp323846vqb; Thu, 5 Oct 2023 07:09:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFV5vbQ4QjuivLwPVRMpfo0wWbF0s1QzNBdz+p996GEI+0BqrVZL2S/z/578guuiDL/wct1 X-Received: by 2002:a05:6a00:15c6:b0:68e:45df:4648 with SMTP id o6-20020a056a0015c600b0068e45df4648mr5854162pfu.23.1696514962806; Thu, 05 Oct 2023 07:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696514962; cv=none; d=google.com; s=arc-20160816; b=FMl6XGh1lRnDCFaA1JALtskKmDO9OnsxpGsw1E43mrtr8xIk78iL63FmtGI6D2Zf/9 BqiYyiM+ZelkeFRUop6JM7oFXZnhaBdvUayToe4HyqZzNVLCkxByHdtCpZrv5bNNlMVa yPEoXOFVAKT4mGNoIlJW5RgC7Ei1zSgQvZNj3iCY0lvQdzUkynHwsn2Moxz3H8+N8dVe y4UqfvmbtwLN0xLsFkuNq5tCtjahgC251TsdT2w77jov8wWh/9giYezpzHt1b4mlZUl9 h1hlivSvD9oDGLvjrPI+hyLYxuQCYjehuS6pyFLc326o+Q/9cndOGZyDUPxRz7kgQ9Ru FQqw== 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=TSbRKsYb8q8GitmB/U1RL+XJyPpceXOp7I/10Xz1sb8=; fh=DNj3x1LU/bB30oLF4CwdyP4P5x5olvFzEaoaVXEWcUA=; b=N4kmapnYzOkWyogQ8hhx4tc/lhYHKpQ15AA8MdQgtXE6JeocYWUMhIweHxjSZIIr8T WTCYiOYcdWXNeFPeacV+XWfG2jxhwIZ3xriBuOzxjRt7++2qqhbcmrTaVshH7Fgbs/eB qrNuWIU+HAOH8x6jx9kCPjtfeZe7fQKeZvOwjrbaCsLw0K6N0gAm0RU1okw8nmylG2+G eL2ilRjkf2OjhhncnhAIFMqtjPkWzESn8UmVZzfHA070BgKAkl6A8Z2nyqdBKjCqIJhU rPhgEIJ1dN/k0tw39fxwgB8R6++iQt4ykUf1g2R4iXAv1m7Io2rAQuly+mLZkwZrVm6+ zWog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XueE8YDI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id fb25-20020a056a002d9900b0068fce0c7193si1490892pfb.282.2023.10.05.07.09.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:09:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XueE8YDI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C7946828E84A; Thu, 5 Oct 2023 07:09:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232645AbjJEOJO (ORCPT + 19 others); Thu, 5 Oct 2023 10:09:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231221AbjJEOHA (ORCPT ); Thu, 5 Oct 2023 10:07:00 -0400 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9879D195 for ; Wed, 4 Oct 2023 19:59:27 -0700 (PDT) Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3af59a017a5so73489b6e.1 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=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=TSbRKsYb8q8GitmB/U1RL+XJyPpceXOp7I/10Xz1sb8=; b=XueE8YDI+5wUzH/Y/c1ekq0JHsfG0iDJZ0DZKAYcl8g1xl0cXcnsOXRfnBYI5z+5Sp uF0woHMq1a2m8jg1QEBPTkidp0l3V1+YLRG2+beaqk85481HjmHmdleil1b1Lv9CB5yk YsuvkOClIFGfkf1921MjtShKipa4prN2W2nG+GHHnyDn/7TkB6trSsIL5iq70+GweTJC Qvu/yMW1TvG0Oe2qsAXjcPw/T8Yjx/sKhLJuGHrvsRXxDClu2FjNL65wzgb/7jknu+P+ aXE0i4n55uHxxZ0p4BgDhenLVIowkX0VJphrfNg8z8rLfG0RW6GE9FmtviA1tQ4ttg4X UJAQ== 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=omBWEOC8mVoSuGmTENNRr8Jwyk1oc0ij309+XoBCM/NI4Z9M4VLbRKmk/BqGhxEN3n ZBDvReKa9QPjdOdiI6YUD2FC4d04NwqD2WpZ2VRq+lpz2kJ7a4AEm3TjxIn4i/e4pVEF xJ7Bg5D3zcjOW6lpVKTsxLiQQpx64gcqAF2qW98L/68YFuOqYouk/JyeD8SNGNgU5nlJ 9X55skVRxurEGL3aZX7eK+8oFgarNS/U3B/Zp2SaqycqKlZ5Pg5KLZaAvZ7R2LuzYCb9 hZKKh8IhbmoOvfeGk8ZrQy8VrE07rdAGF+vcAlkJG8MGUoZg/1oZ+TUcnMufrz0du/Li 6u6A== X-Gm-Message-State: AOJu0YxKWqfoJ7CLz39EbLzwk0APu9bvM6rUy6JH2XDPd3hKAXrGIvkz F3lX2pTRcpBF8RFj/+QGfY0LoQ== 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:09:21 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778924873476926628 X-GMAIL-MSGID: 1778924873476926628 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)