Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp769658rdg; Wed, 11 Oct 2023 05:14:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHuzHY/H7qYCdkivfKJH85y03GTvUnZN6GXYI/ZJSvi3aBEEzxRC9X9DqFV6nBq01xwzZQ3 X-Received: by 2002:a17:903:191:b0:1c9:d011:582f with SMTP id z17-20020a170903019100b001c9d011582fmr1191383plg.37.1697026463438; Wed, 11 Oct 2023 05:14:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026463; cv=none; d=google.com; s=arc-20160816; b=UHBmBspb0fpCtFlR/H7wVpcWuLMkkCUvouz1yq0qEVsHT5wMiuYdBSSipNoxo8s9FN zXjQVRLOC6i05JdzoTNUQNB0Kkp4+CdAgl1lCK8v+6Jk941cWB32+zKOWw53VYRay/E2 aUVONnwFoM7JOE9LxlRHP+UoOT5ICb0OWLO4+FhwLilomOGWL5ihS6Bl+1utEtQR6cCE jLmSGDazKCBSua6wZzjTxU9ooU214ZpczxD6SdziHO1oBjRRk/7rxGdb/98k2z5raWpp gYVCJbvwsAwOlH/ePo66CyYPJBdXEAePc/Q5MFuysOoDzcVJJUoBXxiV4//df4NfqxPG L+NA== 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=e36s7GGdluC5QXynxByie2ZOB2vhF56/mrPwGpCKJMc=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=vJf2zII5fyOJCMCp+M3RUnOH+zAHiCyrN34/OIADD351w2JE0+IvXEu7FW2AhVoYHW +Tg9GGXgmLLDu4FExwQzUzJCoSadsm9cJoPCjl3yGtd6yTe0ux9nxCLL3f2x+ogE13UF KXQPsuV7I+to+nVSEK7bPqFl4WJuunkcwxs4E3mgM7j4CafxFgAkEkBLiREX5FBEMWcl 97iXf9LSavvS8nRZfiLwEyUHaJKZ8QHC9u4D2otfSVW5m98TovSyVuO17sXMygI11t1M jL0zk92epw1VvH2h275lXwrc3z6eIgnh/WRSKNHkDbKmF9TVDJe6TBXILTNr3V2iCQyf BKrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=DywQE1gy; 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 Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id a6-20020a170902ee8600b001c9d690baa4si212188pld.532.2023.10.11.05.14.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:14:23 -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; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=DywQE1gy; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id EC8248135658; Wed, 11 Oct 2023 05:14:20 -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 S1346400AbjJKMOA (ORCPT + 99 others); Wed, 11 Oct 2023 08:14:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346809AbjJKMNz (ORCPT ); Wed, 11 Oct 2023 08:13:55 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73F621BC5 for ; Wed, 11 Oct 2023 05:10:24 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4060b623e64so5628895e9.0 for ; Wed, 11 Oct 2023 05:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026191; x=1697630991; 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=e36s7GGdluC5QXynxByie2ZOB2vhF56/mrPwGpCKJMc=; b=DywQE1gyVx47sFwd2d/Iuml2zEp0tVCWZz5ZkG3lcZNwjQC3FJBCNrfiEsQ3TbWDjH 742aYDguhBdOEPorCmCNgyC7HdZkER92HCMP+WjaV0ZJFqxwtUSL14F1ljrFF2uUmFzf 4fL3tn1hP2zP3R3aMbgBXgMalHbzhDi057oNGf8kUW8ymGuKwfjjSNxfOF9Atz2LWMUn 4uz52YRxNNMt67XBL5lzXUlLN0p8G3cPpAgJ798lK2rnVhE3+BYmlTAU7lSSNFd7H+ha 06hnNsT/nQTlZO0V+YGuMNyASN3LrW35Bw7Y4t4LUSYGswiNNztBueLNWrXOy1T1lNzT wllQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026191; x=1697630991; 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=e36s7GGdluC5QXynxByie2ZOB2vhF56/mrPwGpCKJMc=; b=MC7qGmqdh3bdrcduHk/lVn9fpd3dmCbSciFbWLlgbtnFrEWOTj6g60ofZtTqLdXdHj JDWKVWQu+DyOXbpTumtHi49v0Cr7tNAyh9qdLKgKqsAQmepnkXIa8ZKaADgaXeyQ3XLk Ajcp6SGUi/6WJ/lO4Dmw+pKCh296P8gFgBF5VVIQ+nhtul3LR8yc/oschiM8dMszEmhm JlBJ/atEAsY9ON89jsEmETYCdJNGx6+FGRAv8WUkQVNfHzeApYWmkG9Bakd/t9BNK4ou dpxQG8goQbzuysv9sQ5FSGO5rKUBuTYVG7B9czDJXay2yOQjaJzMwBF+T2a13odd01Kh uJIA== X-Gm-Message-State: AOJu0Yy1UT87hQ2pepwMn0yKGc4UZ4tRta5ZmI1ONDwpOVXIIKNWR6VB WRFRmq1ZyT62SGrAoDQmQLc7Ww== X-Received: by 2002:a05:600c:4f02:b0:401:609f:7f9a with SMTP id l2-20020a05600c4f0200b00401609f7f9amr15768612wmq.8.1697026191637; Wed, 11 Oct 2023 05:09:51 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:51 -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 48/62] pinctrl: st: drop the wrapper around pinctrl_gpio_direction_input() Date: Wed, 11 Oct 2023 14:08:16 +0200 Message-Id: <20231011120830.49324-49-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 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, 11 Oct 2023 05:14:21 -0700 (PDT) X-Spam-Level: ** From: Bartosz Golaszewski pinctrl_gpio_direction_input() now has the same signature as the wrapper around it so we can drop it. Signed-off-by: Bartosz Golaszewski --- drivers/pinctrl/pinctrl-st.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c index db511dbd50e5..a30b426d1e74 100644 --- a/drivers/pinctrl/pinctrl-st.c +++ b/drivers/pinctrl/pinctrl-st.c @@ -717,13 +717,6 @@ static void st_gpio_set(struct gpio_chip *chip, unsigned offset, int value) __st_gpio_set(bank, offset, value); } -static int st_gpio_direction_input(struct gpio_chip *chip, unsigned offset) -{ - pinctrl_gpio_direction_input(chip, offset); - - return 0; -} - static int st_gpio_direction_output(struct gpio_chip *chip, unsigned offset, int value) { @@ -1488,7 +1481,7 @@ static const struct gpio_chip st_gpio_template = { .free = gpiochip_generic_free, .get = st_gpio_get, .set = st_gpio_set, - .direction_input = st_gpio_direction_input, + .direction_input = pinctrl_gpio_direction_input, .direction_output = st_gpio_direction_output, .get_direction = st_gpio_get_direction, .ngpio = ST_GPIO_PINS_PER_BANK, -- 2.39.2