Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp774967rdg; Wed, 11 Oct 2023 05:22:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFboq4miXPk4njjHTfO1+1R2uYe83fJWf/mzSJT5xB2Mhmy7+FTdQeD1lzh8jt8wsYx6vbx X-Received: by 2002:a05:6e02:1aa7:b0:352:749b:720e with SMTP id l7-20020a056e021aa700b00352749b720emr26464950ilv.12.1697026959388; Wed, 11 Oct 2023 05:22:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026959; cv=none; d=google.com; s=arc-20160816; b=pRLzbE5P9ZTvj0JuNZo6XZ2Lyf8rBMDuMseGzAlkN91DFbek+/R1gCKEX18GWizs0F YwXdpD7tBeEXsaeugprsDBxVZlUP2BRmSZsouOxBSboF97u0gaWy28s5UVkTlU1YJc87 YYmeacJP6mn5YLIug2SYG9Y2Pb52h45NztAgDq11jNCbUnzmqF54huvBtvlQRMln2rG8 G8fJH8CWKEIhf7nKzgIrzTd5m8jhg4x28Gw+JsQMizr/J8M/E2oDG4JTCtHCfD+ZXlKN CRFDumWExydJZ/JFB4oSM/dHs+Mx99JIBDevFlRT27+2GlPBYqq3e49fHBzUjQ2eHKui KRdw== 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=aEPSU1082I8bAKtyLPrVc7z4Kqv5UrO7T/vph5tByY8=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=jBu3WbT6DDxqiQrqymjTgdHg/vTIWNJFjU2pHaJqvrRXzSRXlf+Awx1CvoyGwwomsv UL5UMTXMXEes+JowWmgDqdGskf70X1DbLE4Udms0KNFs2CBokEimoknlpkfzCe5mBmTY LgWKNpcec0utvnnQ7pPLtN7DLfI2LG5UQewAISORSkeAdMZpxVaVPJYFgKPqstHIum1B SGQOdVvkLYhGm/CAVaYmQ2qWKqzEjNuEB2zMK4qd+PF5QG7Al5UFmuLBYyX5OObZ44ex 1DyVmleOAvvJd1mZVLDx4dXF04bprpPUFoa6oRPIvnTyJmJxL+fpHj2HsKRDvBy76m5p Cfhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=wgRzau7L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id f16-20020a63e310000000b0058986ac734asi1889847pgh.561.2023.10.11.05.22.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:22:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=wgRzau7L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 9BE888098722; Wed, 11 Oct 2023 05:22:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346929AbjJKMWO (ORCPT + 99 others); Wed, 11 Oct 2023 08:22:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235075AbjJKMVl (ORCPT ); Wed, 11 Oct 2023 08:21:41 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6999F1BD3 for ; Wed, 11 Oct 2023 05:10:26 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-5042bfb4fe9so8306127e87.1 for ; Wed, 11 Oct 2023 05:10:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026193; x=1697630993; 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=aEPSU1082I8bAKtyLPrVc7z4Kqv5UrO7T/vph5tByY8=; b=wgRzau7L5Z/TS70EjYSoceZJIC+uekmcCdQ7CUhbkT0HyM49EMzacfrmQ3y/jMAh0V ccR/BrTFDlUYoeZws5U5FAQXpgGbiuglM/JzehhvfFLqGxFyhbMO5jcQYfEPF0DjJ4KE 15AwQwdK0lDz2KFWbq6J+bu8kZXPJ20qQsCeHvJq9mT5o8sUEp866t1D2zOWPnn+t9w3 l4HaQcx8KeTh6qLGepf79DRAh0c+blQuZb6gG115ndo/CBCS3a+iaAedTSd2aRd0WTuL aFGlrcRsVQpNpzL7jrrwc7vt4Z9KzWMWPa6QOC78/CgeWPOCt19byycbIExfJAlLWenq iHgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026193; x=1697630993; 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=aEPSU1082I8bAKtyLPrVc7z4Kqv5UrO7T/vph5tByY8=; b=TbQHODRjeoFwvKrNnbzHLeUACL3PXJUBsDZWT17IAQS0Uf85jjJFFL9/y9KBxV7hAB g0rF2Cj4xnpqKsvdNZX3j1wbjyikhALywran59/Zd/rQfi3ZlipdyJws81UgnLcwKO+O rkZa+92kYZd3FQcArfjliOcL/A1gH4647R6yt3TMCazvK9lLoRzcv4tq8ovT23Hl6loE MUAkC/RrIDQF+Otc02VWv/oNAZgbtnynj4HSnGhI/W5z8MmOBJ/99UhE75I+qcCjXRba KebuHTNGc5shOtKM5a8SF5FsO7XZwd+B+2DBx+dVbAMZOtpFDMJXqGxnGF1oOp/VZO8b t5UA== X-Gm-Message-State: AOJu0YxD2rb9wbW9WOByv/IzhDv+d7A0mpshsndVUIzVJ04k+RGl4edF tn3+4hN726JYL2wgZYZG8k3YGw== X-Received: by 2002:a19:6414:0:b0:500:9d6c:913e with SMTP id y20-20020a196414000000b005009d6c913emr15678060lfb.52.1697026193395; Wed, 11 Oct 2023 05:09:53 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:52 -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 50/62] pinctrl: as3722: drop the wrapper around pinctrl_gpio_direction_input() Date: Wed, 11 Oct 2023 14:08:18 +0200 Message-Id: <20231011120830.49324-51-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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 (snail.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:22:26 -0700 (PDT) From: Bartosz Golaszewski pinctrl_gpio_direction_input() now has the same signature as the wrapper around it so we can drop them. Signed-off-by: Bartosz Golaszewski --- drivers/pinctrl/pinctrl-as3722.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/pinctrl/pinctrl-as3722.c b/drivers/pinctrl/pinctrl-as3722.c index 4151656f6245..e696bac83818 100644 --- a/drivers/pinctrl/pinctrl-as3722.c +++ b/drivers/pinctrl/pinctrl-as3722.c @@ -500,11 +500,6 @@ static void as3722_gpio_set(struct gpio_chip *chip, unsigned offset, "GPIO_SIGNAL_OUT_REG update failed: %d\n", ret); } -static int as3722_gpio_direction_input(struct gpio_chip *chip, unsigned offset) -{ - return pinctrl_gpio_direction_input(chip, offset); -} - static int as3722_gpio_direction_output(struct gpio_chip *chip, unsigned offset, int value) { @@ -526,7 +521,7 @@ static const struct gpio_chip as3722_gpio_chip = { .free = gpiochip_generic_free, .get = as3722_gpio_get, .set = as3722_gpio_set, - .direction_input = as3722_gpio_direction_input, + .direction_input = pinctrl_gpio_direction_input, .direction_output = as3722_gpio_direction_output, .to_irq = as3722_gpio_to_irq, .can_sleep = true, -- 2.39.2