Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3118057rdg; Tue, 17 Oct 2023 05:23:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHV1bht1PGX8qWivjBJyUo/wLU6A962j61t1iTEjLj+uYLhx/fhcNgtXqDXcQwTc4C4e7h5 X-Received: by 2002:a05:6358:5bd5:b0:166:cb43:47c0 with SMTP id i21-20020a0563585bd500b00166cb4347c0mr2358236rwf.7.1697545383225; Tue, 17 Oct 2023 05:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697545383; cv=none; d=google.com; s=arc-20160816; b=gXggWH1MF/By01i3Cti911eIp5Qwi5QrFhil9BZwaJQk1w4jvsj2d5vA+qZJrKzCj0 b9nqnkyD1Hi4MXNKzIFRyNMqmwjPlcLpsoj+HodfZ33N8dsiL6E5K8dCagY4TjUkg20D n7V8yWnThIMQ8biQ2vDNRblwlXXmVpmnJC4Scx2+E9VPtnfMWdSFfid8xvoCn77t3bbU FTUjd3sc2qiB8yPsSWLKaWLyfJC9rc8zbQdnt7uraDNsbdJWRvnZpoefvSPIGpZshmVk CIA6WhXoDvRA3b27VqtlBT7dqHs6Xf8rq0zySvY8qGfUlkh91tPNWBfYTDYUXY32y9Am my1Q== 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=CHG7rxCq2i//+W4yV7nUKawChQHAlvElG2FQaJzxjCc=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=GvHrFgEIorv6rnI/eLZDccOz5rJ5KhMGjPExvbQGp85EPQauI1j7nHOpcWI9E6vcI3 T5bOM1YHXKfODt1die+v3Ayu0BAnyB2KSTtxcKV+E0kHlFx3lfIcBgq1KnrKfyAi4HkG CFIXYVkKRACDvAwDNAr7EaUMX9w6fQ+C5PUUSYLEEQYTBTx3YJ9crCIFKb65crQPL2yx BFM5oyntYE9tddCwSBENtDsUPLG4MQThFj1EYtVY/QVRRYXWW4VfQ4gd3LW4yoP50KgA sidqzbQbQ4pcReQinNQgFvAc2K+zVpymbdLFhcw6vqgjGL0OVG3BnJf+fERXSsLnhp0t 8Tjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=2AVAlLyD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id u8-20020a056a00158800b0069347c30c86si1576221pfk.253.2023.10.17.05.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:23:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=2AVAlLyD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 DD1F1804A9FF; Tue, 17 Oct 2023 05:23:00 -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 S234912AbjJQMWr (ORCPT + 99 others); Tue, 17 Oct 2023 08:22:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234514AbjJQMWa (ORCPT ); Tue, 17 Oct 2023 08:22:30 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4651273C for ; Tue, 17 Oct 2023 05:05:55 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-405497850dbso54310505e9.0 for ; Tue, 17 Oct 2023 05:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544353; x=1698149153; 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=CHG7rxCq2i//+W4yV7nUKawChQHAlvElG2FQaJzxjCc=; b=2AVAlLyD9FUtIXez4bcoI60LAyIjPmwwmkRyufVmQ4GUX5Q56QcKWN06/sUQq6YBKA yaDzmZAs9r26yTMCJh27RVb0w941th+mCnYYdF+LFrbFxx5mzCyVx3M1BrUArs6ITAOW nngz6pXM680n5EMzj19bH0U1011JZF9tcIez/NpFny1hc6Rzgk5FxTzgPtUFW0HJaR1y MINfhKNpPvvtlIrZ4Opmc31dScPe5RqjWmYNgzZ6gOtK85XdQ8ZNSoYpUittgzQWtkCf HiqWjNog7yD4DMkGSGVgfm5iVZ4OPTd8vCcIyOZj+F5JRuZ1DiABDokf5aKe4up2KjaT 7iDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544353; x=1698149153; 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=CHG7rxCq2i//+W4yV7nUKawChQHAlvElG2FQaJzxjCc=; b=tW/IHUqcggGTE68Bvz3pQsfFbkBgDvTehBPv1diSBZiFOMQrsQgnZpqbE6xu2OI4Yb RSzSe4OPsFvqRTG+4IYJxO65/yxTrAySVHqrnrkwSoE4IdM6351EDoK8u9vd/pya6hzg QnUvti1t9mqzS9H3ocL/QJuRf9iwWvbXfvwHf4ucodIISVdEuk/1M6BtosvFrALtTbZ9 q3iT/q3REdlv/fcGPKvSrfuCP5yZqb57D+tfx5C+uW3qjXc/mGkPOgRtkqRkpDOcyCjg 5pvyxZd1ts1iKI7QrTs+szvPxpta4RKzXYI9hIvOxBQVoac7guvK1mYfjUUe9glCeB21 215w== X-Gm-Message-State: AOJu0YySv/evGbuVK8oRRAK6SYyD67VQIugHampIjIfXKg39a129oIZg 7A5mL6Q+KqKbkiaDfnNjkeFHOQ== X-Received: by 2002:a05:600c:350f:b0:405:3dbb:ec5a with SMTP id h15-20020a05600c350f00b004053dbbec5amr1558009wmq.1.1697544353151; Tue, 17 Oct 2023 05:05:53 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05: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 v3 68/73] pinctrl: starfive: jh7110: drop wrappers around pinctrl_gpio_request/free() Date: Tue, 17 Oct 2023 14:04:26 +0200 Message-Id: <20231017120431.68847-69-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:23:01 -0700 (PDT) From: Bartosz Golaszewski pinctrl_gpio_*() helpers now have signatures corresponding with those of the GPIOLIB callbacks. We can drop the wrappers. Signed-off-by: Bartosz Golaszewski --- drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c b/drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c index 695c8c0a6e8b..9d71e8c13310 100644 --- a/drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c +++ b/drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c @@ -545,16 +545,6 @@ static const struct pinconf_ops jh7110_pinconf_ops = { .is_generic = true, }; -static int jh7110_gpio_request(struct gpio_chip *gc, unsigned int gpio) -{ - return pinctrl_gpio_request(gc, gpio); -} - -static void jh7110_gpio_free(struct gpio_chip *gc, unsigned int gpio) -{ - pinctrl_gpio_free(gc, gpio); -} - static int jh7110_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio) { @@ -940,8 +930,8 @@ int jh7110_pinctrl_probe(struct platform_device *pdev) sfp->gc.label = dev_name(dev); sfp->gc.owner = THIS_MODULE; - sfp->gc.request = jh7110_gpio_request; - sfp->gc.free = jh7110_gpio_free; + sfp->gc.request = pinctrl_gpio_request; + sfp->gc.free = pinctrl_gpio_free; sfp->gc.get_direction = jh7110_gpio_get_direction; sfp->gc.direction_input = jh7110_gpio_direction_input; sfp->gc.direction_output = jh7110_gpio_direction_output; -- 2.39.2