From patchwork Wed Oct 11 12:08:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 151395 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp498153vqb; Wed, 11 Oct 2023 05:22:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEOAOPfK5fqMHrw0kdopt65qpsac+QxyYBYJoIytxYL7c/txvklfzBDXSaA+/WCXw49tpXw X-Received: by 2002:a17:902:e5d2:b0:1c4:1cd3:8062 with SMTP id u18-20020a170902e5d200b001c41cd38062mr23753859plf.2.1697026956795; Wed, 11 Oct 2023 05:22:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026956; cv=none; d=google.com; s=arc-20160816; b=CJEgx9QybbOuJWNHYRSNiy7RNqVyec06NLafzT6HxfMww9l4xXjxYyt3GYILShEoLG aStO2t0x21DdwBN2N56Bm1clotkkSrQ5/o6kByTy6qwZ2IsgMFrMIKClc5w8BU4LFw6J HFLerTJ4o5GRdD0KIZjH+8BZj1fh4HWoY2II5OyZHBpVdd1pFw4IzlaquoDApAfhuv1p lVuyQ7EEZ4+t1q+rEK8i3VYdCj4lu9au9ZYaNGDQnXYuR84DxKZ5VrKvcRRkGYapHget azZWejo0yADXJmra0a9EEf82VZEfzidp4lY59PqeIgCde8db5NeIARZ3mfaO75TZwkm9 WqYQ== 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=EYaubAEjb8jIz/ZTOGnBQzJ0oe0Kyc/ixkibc3BZPzU=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=ws5SX0zytB9xTS59BgisB0rKuSpufDnYkqpkhFPm5Kn7HgXwnJwt1Tju/91wq7T6xV YYxeStfmYGQLkRcYZKjZED1+1OZU125/jOMt5gdOzmzZdNAOXJ22CmfKkKN3BUnhoKUO EDE01ebjLeuKYEuE5XI0v6q+7N26zAzc5DqnsvsSniqx+HVJFhugHOY7fo6U49upXZPj vBh1VIIFt6B4fHmU8GZj7DEPoXo7zmuZZxwXPPyK8Nin7/wBYTENEXMWzcheZQB/toG9 LvjuSspWCNFwn6+HnWgte7IR8f+AhVOWkEbC8tCRX0/CPnfflJuHEWYKZMs3ToDGBrd7 VygQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=gJ6o3XNX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ku16-20020a170903289000b001c75ed2e4a6si13651130plb.106.2023.10.11.05.22.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:22:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=gJ6o3XNX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 52C67802A540; Wed, 11 Oct 2023 05:22:07 -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 S234805AbjJKMV7 (ORCPT + 18 others); Wed, 11 Oct 2023 08:21:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235016AbjJKMVZ (ORCPT ); Wed, 11 Oct 2023 08:21:25 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CC9A1FED for ; Wed, 11 Oct 2023 05:10:42 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40666aa674fso63482135e9.0 for ; Wed, 11 Oct 2023 05:10:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026204; x=1697631004; 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=EYaubAEjb8jIz/ZTOGnBQzJ0oe0Kyc/ixkibc3BZPzU=; b=gJ6o3XNXNqPcrsDzBkzjjR7P/qyRDWUszJX6S21MICz8qC0s4tawavCrpD98GEA+jo f0ZGAZDHMPZ46eOG0KCZCTfujTuQG/eiZ1PrW5t2Vbyh5TN37d33IqcmGHbJPBuyz380 qwB6ZL21T92NOsT01yWhihvMyERSCq0vMSTI2OJXIbmtgfLhe4M+b4bfD4cM1Pf+Lyma q1yGNZXtRLkuoKgrNRTlUbq55PpxXP+07EpmAiuFzNYep8CU+JhWSWxLfMIYZhvD1Bi1 c8AjlmgRyNIBkCUxCXm0s2ZWE+22UR7GkX03d2ANiIdgXoBF2DLeZa4JM78lP2yX4kCE wvtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026204; x=1697631004; 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=EYaubAEjb8jIz/ZTOGnBQzJ0oe0Kyc/ixkibc3BZPzU=; b=rvcjSep2CyRI9tWr6pvSlPBK7+Qz0vjQchmAvSEBkG/iIDZqRQWnvmduMFQoYM36qg aMD6k7SSrl15iyYwRJOd2aeWIj3/SniQrvAKYCPGjVPMWyYVz678aeTLttRuKAUxgugO BLHNbNXaJebaBmRxPI9gkLq15mtFTYy6IkyB+LFyf9pVymxpyr1R3cSlm2s4nZrTlrJy MgI/Pst8+ZEwTkqB7s2yOo147fqav7lweN8TbSfv7qJeacwBNYbtEXeBMAZkl5FAtfBi zzfM8RmzaB5EGA1UnBXcZYRavC6+NJxCvcjMP0qETKGNsaZnvx5vpvlM5uXBVnD/n+1G usFQ== X-Gm-Message-State: AOJu0Yw9V1rFuMBiB/wGLgfMtdbL1oSehnmkgcJLBV2PBNRN7DNv4CQp D0XQmvpYWphOtcEMJubJ3pvkGw== X-Received: by 2002:a7b:cd85:0:b0:406:599f:f92c with SMTP id y5-20020a7bcd85000000b00406599ff92cmr18667253wmj.20.1697026204759; Wed, 11 Oct 2023 05:10:04 -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.10.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:10:04 -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 62/62] pinctrl: tegra: drop the wrapper around pinctrl_gpio_request() Date: Wed, 11 Oct 2023 14:08:30 +0200 Message-Id: <20231011120830.49324-63-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 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,URIBL_BLOCKED autolearn=unavailable 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:07 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779461737785080557 X-GMAIL-MSGID: 1779461737785080557 From: Bartosz Golaszewski pinctrl_gpio_request() now has the same signature as the wrapper around it so we can drop them. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-tegra.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index adfbed62eff1..ea5f9cc14bc4 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -137,11 +137,6 @@ static void tegra_gpio_disable(struct tegra_gpio_info *tgi, unsigned int gpio) tegra_gpio_mask_write(tgi, GPIO_MSK_CNF(tgi, gpio), gpio, 0); } -static int tegra_gpio_request(struct gpio_chip *chip, unsigned int offset) -{ - return pinctrl_gpio_request(chip, offset); -} - static void tegra_gpio_free(struct gpio_chip *chip, unsigned int offset) { struct tegra_gpio_info *tgi = gpiochip_get_data(chip); @@ -717,7 +712,7 @@ static int tegra_gpio_probe(struct platform_device *pdev) } tgi->gc.label = "tegra-gpio"; - tgi->gc.request = tegra_gpio_request; + tgi->gc.request = pinctrl_gpio_request; tgi->gc.free = tegra_gpio_free; tgi->gc.direction_input = tegra_gpio_direction_input; tgi->gc.get = tegra_gpio_get;