Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3109753rdg; Tue, 17 Oct 2023 05:09:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwPnPoIwmRxP3GUEMs1JAX3l4ETDZu4xN8Uj8dRMKJJd659iAUvx+sWMGsUd4SJCS05mtM X-Received: by 2002:a05:6a00:1501:b0:6b1:e876:168b with SMTP id q1-20020a056a00150100b006b1e876168bmr2111347pfu.11.1697544548888; Tue, 17 Oct 2023 05:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544548; cv=none; d=google.com; s=arc-20160816; b=mp+rEy+S6+vYV/+BVVwMUrE9AHIOuv0x/7BXjtVk1ViSru2qAfB5TLljPfgQYUbkbc w6SwEEQMKZa++BXOkpfpfX8KvFd2lDzizJkt/ke4z2gqjewGBak+VAntOZSqNjtixTMk AsJpFAzBw/kmb0rrdXwGwYQlVQzew4T0NTBOVJSpE4y+3ySBwXSFR80Alb4oCxIxYunL HC4uGcrCp4Uk827PHJ94psfqyHKCvcyQE6y6n7uuIm6Wqk0HW9i4IblR4uP1BgMRVttX Nae1xUscaEbf+X7UH7f8jaTqgjhqAdsqpPpShFNAFd9p5P6G7IAg1L2fdAPn+/q2d8rk i/Fw== 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=G7vwTYIFniGiyz7XRLA7xg+vLp9rwMPLvTrSR1tRaqM=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=YxIeyUplONmaCnmZcRkAEYyt/yC47ImLiiuBfskiX2o5ts51pV+rwFT1KBzG97gAwF rSXqBGfe7emhPi9/dZnYsRijyVr9GtZnBeIC6HqJStEq3gpLaHMg8oplbzHDy7ojmIns 3UiWgpMjR7BFbuwkUD3N/+jvSBCOcZas6XSzhAWe6M2tyI9LOsw9UXCJrS9g7KU0WnYP rKtQDw/9XMHzN3DeGFo0g3MpGwo+ke3JkpjGZp5xkLPWZktBombrGceRMXZAj/fPiudq tfUIz2gyK77mvJt+m23aNX/MsTwhgF0SQMCBcKJz6TmHNbZWAsbGZ7mDTFam9Di0Kh0A BZAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=nukhAjCG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id p40-20020a056a000a2800b006bbe72a826asi1561302pfh.180.2023.10.17.05.09.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:09:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=nukhAjCG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 7FB338076C80; Tue, 17 Oct 2023 05:08:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343610AbjJQMIX (ORCPT + 99 others); Tue, 17 Oct 2023 08:08:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343620AbjJQMH0 (ORCPT ); Tue, 17 Oct 2023 08:07:26 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C4F726A9 for ; Tue, 17 Oct 2023 05:05:46 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-40806e4106dso2994965e9.1 for ; Tue, 17 Oct 2023 05:05:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544344; x=1698149144; 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=G7vwTYIFniGiyz7XRLA7xg+vLp9rwMPLvTrSR1tRaqM=; b=nukhAjCGdeoLzDn4zvxP8sKIiwsjZzUizJ21uBsT2vzDuxr0gbiWrOmMFjWrYgnFC9 S1w4vqEJM8u6MkhL2xUAX5yaLffzgmWIN0srq+r2Evi0cTDyWzZUc27bX+N218TwhrLJ FGOIxkrjCwBtfmUIpFSXetwqAKrE/84XcDUpfI5XdckWQPPxvQ0vKtEOVGNZT/O0UEZG ghwbtAHY1nq5jRW1tVWBZhQdaCeMU9Y6OPe91b5444CjwbFAzOqFXjYOSOegQjI9qlDL TAvbwnpRBrC+6MoLkT/UX1i+KiZ/JVko6yZlX2/GL1ls86ahYi8d/nGiWR2DgILipzG/ fqog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544344; x=1698149144; 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=G7vwTYIFniGiyz7XRLA7xg+vLp9rwMPLvTrSR1tRaqM=; b=o9Ln29gJRZhltuph+rGo7XXp0xGhkqy1UfAFQNC1RcC5P89sAhClqShyXp2Azk8oUX 2XJsQGTyS8P9VkvhTMByqDWo0tBVtthGMb+BSwyqSeNxmchQLlKJYk54ryMCtDvlggoM ESbTOgfJUt8gOIhjsLRLWORGHnkg1f0sYbM9IsOSgnU/v8QOURbIxsoQojIGKwNONKYx hQh3oe1NIoUEStc4MbW0qqdu1+gmOlxJC+obJZ1tl43I0eLexYY8Oo+gcCo8eNNmakq3 sMq2HsuAl0176JeFFCoMbPpS7lt5XouINGV3oeO/kTahoJaznrBGPiDM9Uh9gHDk8SYC Fo+Q== X-Gm-Message-State: AOJu0YxppnFaxTb/S9NVggdrtgTQUN40ViKN7fN5WyZEywjHdLrWVQIF 0TssqWjZgHGCGMwKD1q2G84tpw== X-Received: by 2002:a05:600c:3b82:b0:406:80b4:efd5 with SMTP id n2-20020a05600c3b8200b0040680b4efd5mr1581862wms.14.1697544344711; Tue, 17 Oct 2023 05:05:44 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:44 -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 58/73] pinctrl: as3722: drop the wrapper around pinctrl_gpio_direction_input() Date: Tue, 17 Oct 2023 14:04:16 +0200 Message-Id: <20231017120431.68847-59-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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:08:54 -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 5ebd1939663f..6a5f23cf7a2a 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