Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3108242rdg; Tue, 17 Oct 2023 05:06:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFOPIjZIZCx45EY0dyzAk/TqG4iSl5fy62Zv48pUGOM4ePCsJgRzXGDZgdMiifo3Bxqyw0j X-Received: by 2002:a05:6a20:9155:b0:14d:e075:fc5d with SMTP id x21-20020a056a20915500b0014de075fc5dmr1785373pzc.40.1697544418396; Tue, 17 Oct 2023 05:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544418; cv=none; d=google.com; s=arc-20160816; b=XZeOdWWw5dX+fjWU2yCdZMaEFoXr8udlv8KdlfBOaE1xcF2r6EQpPVuHRzIMPUkrvu kSrw+XlKsAfUOER2kXmekR7KJgrqW4ao3WDrtQg6m+sCgJVuMLsC7p2fWTXgmddIA/Za ES3oRM/OrsXWrxvyGZIQcl7v9bk0On2RW2ZYL3+tNjpco+ct/23AZuH1tqMlySV0bJ6a rkY8hBCtzS+A/QrgSW1CAeq6jh7Ek5TkBDbTltY8ZO/VoHk1zyDGg5XAtsyelX507LeM Rn1ciF/X1xXTxpNwKE3czNuWOiC0+e10ZgkSyPradCQ/ITRr+xrRbt1il5cJlMQQ6og3 EGLA== 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=8H3QKxaZyWg3ZP7YHeatEgOsl69MRzJ/Cd/1HakMRZU=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=uZcufsItLsA02FMEzPjiVRbXy2djSwUnXNtPuKvXAQVT5XtcoKMVqY9Kk1qSLJKGM0 BT5j/YDhWGKNO6ot5DK4Kj8VU6WwtbNh+xIvTT0vNveVl0UACw/wdu1a/mB/F1pbK3RN 1OJfGUp46VEIh717LsPhSbFseouS8sdDzZJojF+jf1kdElzoAZpjyMXLuN1drYRD8uhH FKDlGKSZe7NXg2vh79rsqP3FuscKKVgNNG7LbjrP6TtRXAou7yEQ5/9bEC22CE90lEtx 2BaOOzpR6nP2gJSxDXIFMameRpjwt/BpZXM1nEGZI6Xb2R/9vlT4XXVQseIogjVAgIqk CrQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=LC9crqaB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id w191-20020a6382c8000000b005ac8d44bad5si1588051pgd.7.2023.10.17.05.06.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:06:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=LC9crqaB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 3C72B801D2AE; Tue, 17 Oct 2023 05:06:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343504AbjJQMGa (ORCPT + 99 others); Tue, 17 Oct 2023 08:06:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234760AbjJQMFy (ORCPT ); Tue, 17 Oct 2023 08:05:54 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7AD0D63 for ; Tue, 17 Oct 2023 05:05:11 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40572aeb673so53900615e9.0 for ; Tue, 17 Oct 2023 05:05:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544307; x=1698149107; 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=8H3QKxaZyWg3ZP7YHeatEgOsl69MRzJ/Cd/1HakMRZU=; b=LC9crqaBN8/Opclvtzk+b44mGVYLZ6eyPjzNAQUDefjVpbCXV3jRHJp8ziqo2ub0t4 m6kF4jQEGkaRqh5cq1E68b0Ttnr6T7SN16qoFVaexlrx9ga1TU+m9H5JGvTBF5SwQERl uJsSVIAk4mDN5xT/x6KJSUi9q9ZT6zsoMjXGjj7Qy/BlF5I3hShDyvjKdR4oJlaPHIex Jco6ve03WiB6jZ2rjDIaWtASVr9DvRH7vTZ5Vthn25/avG4boKdyjhL+xXwGbNeJuTP8 wtsSPIOCNfc3yhCS6wZQ8z5DYEb+bYk9cnil3Ki82RmZRhV34Kmd5dapB8MGhqq83zWI kuMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544307; x=1698149107; 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=8H3QKxaZyWg3ZP7YHeatEgOsl69MRzJ/Cd/1HakMRZU=; b=c1qOYPRnURDFk4IJuriGaW2I4s4sg7Pm867ElTzEaWiSYBbIneyXA4XIvDcTb1PwYK KE3L15xr18ondnNwIrFZx+FxwQedUlgdnGP7ivgySbEog1p49vRHe2W6hGpDxjNh1WwU WF9Mmwgkp6or7javoMsv+VazodqcfdFk0q3ohA4B7VkG/HLoAzJK8BuXZLxy9XSfY3yb 01EKyjFr1pVKaSP52xCUKKC3AXsZ7HZvkMNczQ3mOp/dOgjDWwT/iF3/LY+4hIAKV7ay M/8Cvj9FxArthFEmKgVwtIU6dx4+EnyQnay0q2CoZxHZHgTw11SBs6kRKMWQ7M9gRPoG D+4w== X-Gm-Message-State: AOJu0YyY0jTYfBIa5iiba/0jNGGMJwxwU346yxxc/h9Hlvy+jtN7UEEA g+1cbSrENnAQ99qURQjlZkUAVA== X-Received: by 2002:a05:600c:a47:b0:402:95a0:b2ae with SMTP id c7-20020a05600c0a4700b0040295a0b2aemr1788066wmq.32.1697544307571; Tue, 17 Oct 2023 05:05:07 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:07 -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 19/73] pinctrl: starfive: jh7100: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:37 +0200 Message-Id: <20231017120431.68847-20-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 morse.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 (morse.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:06:39 -0700 (PDT) From: Bartosz Golaszewski Replace the pinctrl helpers taking the global GPIO number as argument with the improved variants that instead take a pointer to the GPIO chip and the controller-relative offset. Signed-off-by: Bartosz Golaszewski --- drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c b/drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c index 530fe340a9a1..22a2db8fa315 100644 --- a/drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c +++ b/drivers/pinctrl/starfive/pinctrl-starfive-jh7100.c @@ -918,12 +918,12 @@ static struct pinctrl_desc starfive_desc = { static int starfive_gpio_request(struct gpio_chip *gc, unsigned int gpio) { - return pinctrl_gpio_request(gc->base + gpio); + return pinctrl_gpio_request_new(gc, gpio); } static void starfive_gpio_free(struct gpio_chip *gc, unsigned int gpio) { - pinctrl_gpio_free(gc->base + gpio); + pinctrl_gpio_free_new(gc, gpio); } static int starfive_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio) -- 2.39.2