Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3110675rdg; Tue, 17 Oct 2023 05:10:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELPdcgeQSWNFA1OYPnNHW71q+r5lk2UWOjhxFMlKD3i8hlgZ7iSGjOYR1DoBtZHxxamJ7B X-Received: by 2002:a92:c564:0:b0:34f:d674:63e8 with SMTP id b4-20020a92c564000000b0034fd67463e8mr2863814ilj.22.1697544640428; Tue, 17 Oct 2023 05:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544640; cv=none; d=google.com; s=arc-20160816; b=fllAVHntOQk8kDxZmmtyHlMiHc1cGXo8IAF3JZN0GwuiOatOT9kS3PDo2oPe98EQ51 69RKs09Hkx5HcXUwYiGtR8kkLEclmmAYSb2iHSwAisK02TaFKDVt+COF60GeNMEycjIg KevsBI5ZOSAn0lrgpj/LyN3FeHyilCHHOqhxPNr9hepQSB0Ds5wWornOBzu8TqSvamgu kKc2ysk66+REaJE5WMSxlzQGdl/P8I2tXqSNtOHil3hiypfBDe7cW1LfddH6m4i5yhH8 Yd1Z7rRHB28okXT4Tx5qoZssQZac4YARhW1LZX3GglnTIibkveVhIKMye0o8MxYf6FBo XtJg== 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 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id cb3-20020a056a02070300b00578889362a2si1762418pgb.663.2023.10.17.05.10.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:10:40 -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=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=xwHlbuDz; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7ADA58099241; Tue, 17 Oct 2023 05:10:28 -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 S230045AbjJQMKC (ORCPT + 99 others); Tue, 17 Oct 2023 08:10:02 -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 Content-Transfer-Encoding: 8bit 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:28 -0700 (PDT) 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, -- 2.39.2