From patchwork Tue Oct 17 12:04:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 154220 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4086782vqb; Tue, 17 Oct 2023 05:10:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHbqJ3Cb6NzVaK16B5fDwTpyrS7yBBIGDlwuY2XjQQNF4J17XxhjuG3Y2jnK07dmd5/WSuo X-Received: by 2002:a17:903:304c:b0:1c2:c60:8388 with SMTP id u12-20020a170903304c00b001c20c608388mr2008068pla.6.1697544643635; Tue, 17 Oct 2023 05:10:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544643; cv=none; d=google.com; s=arc-20160816; b=MSIgig8XpjrBTynePFmb5fciZpErgNR9aXQvLBFmmdVhItsWGWK0zxkOWZ+/RmK3Qa xzYS9yPPCXFbuOhFYd7JurbWY0utm3TztiqiOvP8NGcUwjiEHG/OfDS8qJqqlTDJQULs c2Et7OYO8xUqg9FBIfb30OradvaA2eL2VZdJynUVGIB03rQpA9kjWRy8LdFOHnXXDZGK DIgdk00r3DGWzZygCOTuUgw0AzZZZ2H01ko/NbDp8TuKAkDP7gymkOQWRFG0pw5Q9ca7 6mGwqOkfqKFA48dgF6JkrGs2WcW0fL2ggSLdfvE1cZHoiDf+pPv+QrVcBBwGDpvJhISi qrMg== 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=O3y3UgqVY6nN2yuJKg1qLnssekXYPB1hZ4I9p5/uy+k=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=YyV5n4brJWJZKcccsSfLe8uDaBi140TOOczi2rmAmyeml1EOYqzhw6cNvv3TRvYM6S cV7abyihADPbH5csG1V6IIyu/AauFCFkZEcoIBarrdta/nQeT/r8aMH7qGOWHHn9dohg N5D98ziBWthJI1fwhMEKWQi9KcEI0Co2AtOUZqjRNlunxpaKBb0tY6ztw7X9scZ2zKed p3wp5DjWQFXxFDq8QXC5V51bxpvUXmLe/zT15RtsjJDpabU6kF01woFFOVlMWn09kdDZ pVc41+3UILnuSbA4aRKC3HnnczN1YhxbVdouUPTuGYFgDoTcjbU1a4Vjvj75MWGwMAzP +gmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=xwHlbuDz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id b7-20020a170903228700b001c3a05b0b67si1707556plh.566.2023.10.17.05.10.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:10:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=xwHlbuDz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 821CF807451B; Tue, 17 Oct 2023 05:10:41 -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 S233862AbjJQMKD (ORCPT + 19 others); Tue, 17 Oct 2023 08:10:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343784AbjJQMJ0 (ORCPT ); Tue, 17 Oct 2023 08:09:26 -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 54B262693 for ; Tue, 17 Oct 2023 05:05:44 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2c5056059e0so60233491fa.3 for ; Tue, 17 Oct 2023 05:05:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544343; x=1698149143; 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=O3y3UgqVY6nN2yuJKg1qLnssekXYPB1hZ4I9p5/uy+k=; b=xwHlbuDzt2SzWHX3ZUsSQijj9TcUNwYqPkN+PAB9EfN6AfIliL2GO9+nGQ6Ibm10/N VwLbbliD9ONy4RbcJ+dF/vyXvzx8mo97EVMXvgG1EAuiEeBrB0OC/t8i0ASLOI/Q5KVU /pD8tOgMLKRr/9GF6E8mO/2qqDDS29C6uPGFA4QebLSY0jPWPHlPxLW4yDDHzs6NulMP J4+MANeTtMv+x4hk03i3ZCIrl3WYMkgXTyOfb3Hz+5fFPp7oH+a3iDpO9f6JV5yjgdvq AmWargOYvQhJpAqAd39C1n4gpFOFjtwYca87lyGVsO+zxUFhvc38e3MlAMUbGYk4ZFeX Dd2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544343; x=1698149143; 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=O3y3UgqVY6nN2yuJKg1qLnssekXYPB1hZ4I9p5/uy+k=; b=o5bbMAhiX18u2zf3UQfTuR/C4AXDkW8P2xS4+uM8WiPPQD837Xt/f2znHigeWp+e1i ELEdN9OqW5wMJq2vgT+oX6ADas044aUK3gA2gtPXSkXARQgaloAci6uaKhB2vjlJwFzS PaypHR99VAPYbYiL5nBZU3wIAE3VJsnghHZbqvRy0Jvn46+snsndh4aDV9U+GMMF4gHS XpS8zHKQU11/tLhGMqTknmysOzI7niiB/DCemxTOvdTJ9N1gP0oyZo8Jf8Usq0xcqNQe ypyuTFxoYqel81vKnFKrgs2qSo3983UV1n/j1Z8GWqC6RjwS3xJ9270mkkxmHBqfzg1v o+KQ== X-Gm-Message-State: AOJu0YxhbzfnbYDU6mjVClUY6Y5sA/bqPDEygSHFfxVGvdysuO/uyB40 ZrSVtTF+iBmDhGsBto3x+9jSxw== X-Received: by 2002:a2e:a44b:0:b0:2bc:dcd6:97b1 with SMTP id v11-20020a2ea44b000000b002bcdcd697b1mr1390356ljn.47.1697544342875; Tue, 17 Oct 2023 05:05:42 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:42 -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 56/73] pinctrl: st: drop the wrapper around pinctrl_gpio_direction_input() Date: Tue, 17 Oct 2023 14:04:14 +0200 Message-Id: <20231017120431.68847-57-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 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 howler.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 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:10:41 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780004572338427742 X-GMAIL-MSGID: 1780004572338427742 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 | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c index db511dbd50e5..1485573b523c 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) { @@ -1330,7 +1323,7 @@ static int st_gpio_irq_request_resources(struct irq_data *d) { struct gpio_chip *gc = irq_data_get_irq_chip_data(d); - st_gpio_direction_input(gc, d->hwirq); + pinctrl_gpio_direction_input(gc, d->hwirq); return gpiochip_reqres_irq(gc, d->hwirq); } @@ -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,