Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3108471rdg; Tue, 17 Oct 2023 05:07:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+WXjMoKGx0OaME0s2k0KR2NUBIk70EY5CD+7s4GXsgcZLiE7LEyI9wS0lxeV79FfkOKih X-Received: by 2002:a05:6a20:144e:b0:171:c88a:8927 with SMTP id a14-20020a056a20144e00b00171c88a8927mr2018645pzi.29.1697544439852; Tue, 17 Oct 2023 05:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544439; cv=none; d=google.com; s=arc-20160816; b=D/UVUw4EDSwUYU/MWD7hc16xbezD/6xaseMfD/mougiDpJQax2PvjJVv7nOE/Yxm8/ B1I1ciWLov4edGT3MOA/2jxyqcgXJ7wBzINCaAYYoo4tZSFtwDdzIKKux7+5TY4PguKj 5upbALfOo8aZGnk55rQCMOgwg2UQjz1e6mN1FRwbe+LL4QFdOY1lMvmMxX6fJTwHXxRx u8QSn9QZSacm7fuzUkNNxqVSnwr3cehfrFIy1GKudUWTzn9NvkxBcguTE1LHTkfUfLzZ cXvyaAgWkshDskXE6JBEGgC5m8Px/R6Ssn8u0DcvzwSoF7rERCXOCzQHvhIBXILiQCUu e6mw== 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=bJw60bvTofR8qZvXWplxQFllGHB1oEM7kWCtPgsLTlc=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=t4pczKAhiiVR4EhZqWoCoX9sf/fWUy8OP5wp78L061llHlfgsgTZ6JXsp5OB4OmFd4 0R0QdeXL3Ti692LgkYXaQejh4ABJeOC2ckTkhG2zywr0pWKUnn3HWstjm2q98usxJQkU Ng9MK9OMrVZo50HbqxE22RtsxYqU95Hx5PoGg7ptoHU8pTOHpdTkB9I1ZC0MNYhosykn WloK26mwn/hm/W41DFd3MI5MvNzQV9USiieHByqzrSTN5wTo45g/m1yArOh9xm3L68gn g3fASrGtsrIqlUBBei84bfplb2Dy6Y5TrdSvhECYoimSB57W6Hqx028b+yK4k92V0Uy7 3BpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=uSbNJi62; 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 c66-20020a633545000000b00565342470c4si1575462pga.801.2023.10.17.05.07.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:07:19 -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=uSbNJi62; 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 6E2D9808726C; Tue, 17 Oct 2023 05:06:55 -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 S1343644AbjJQMGg (ORCPT + 99 others); Tue, 17 Oct 2023 08:06:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234987AbjJQMF5 (ORCPT ); Tue, 17 Oct 2023 08:05:57 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5250D6E for ; Tue, 17 Oct 2023 05:05:12 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2c501bd6ff1so61891731fa.3 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=1697544308; x=1698149108; 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=bJw60bvTofR8qZvXWplxQFllGHB1oEM7kWCtPgsLTlc=; b=uSbNJi62ypO16TmTwo7X63ldRq28O14OUqM3J8XiqpFP+97o63RvUIfBLeYspZzWtx a7RFKvKBqJxYYSs7yErmXDPfEoeDXGVUNI8NmUuD5J+QELa2879syo/f5SzXlper4DeT nUBcOfv/EomnTsS4CgXHbW7E9yZaAgU5LaMN+r4oHSlNYwjCYd9rjtvgjbvDZ7NOVny9 eyPkYUGqDieCeJGpu6RyiBdill2vjtyMt7bdE9vKJHLah3kvNslF8em+w0/Wp70KF1Rs UbI5VzihKbJKot5gXVgevA3ILB4ZSUHScIagXzhlvZGHHYqS+9P1uN5uDGBhBY69ysP7 miqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544308; x=1698149108; 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=bJw60bvTofR8qZvXWplxQFllGHB1oEM7kWCtPgsLTlc=; b=ZFn4jXPFO7DFpif++cogUVnkCqaID7Eehsdx6vFPU6OPzTEWqWu1m/lPdcHK142JIR FyzsragH4VDXNAXjNANn4GUWyIj82+tSMAHlVS45hrPzyxiRG5rLl8k4obg3cDYvR5dz 1JvlCObC3AEy1f7SyZn3tLtzmLkB2jHLVL+R5A8DUHaFEYBq3EFHcK14PQQoepFnSlgy TRTQUTd9YMVO2XoiSoT5Ae4RrX/GorK1hBnb7UVO4FvV8NI0vMTzFI1hGotQRaoH3hVw 7CfuEw4JsMuemaTo47wrg9VK00zCz/xQVatw4xEo9q8011E0iI+Fo6EAORldK5Cznz89 nKiA== X-Gm-Message-State: AOJu0YzYmBzBzYkja2haBY9ZvLh52CJEEA6irbpdaACtzVifZKXuRR/r hy6+pdrt/eaIVKT+vg4Rti2zwA== X-Received: by 2002:a19:6557:0:b0:505:7371:ec83 with SMTP id c23-20020a196557000000b005057371ec83mr1533434lfj.48.1697544308381; Tue, 17 Oct 2023 05:05:08 -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.07 (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 20/73] pinctrl: starfive: jh7110: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:38 +0200 Message-Id: <20231017120431.68847-21-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:06:55 -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-jh7110.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c b/drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c index 640f827a9b2c..5557ef3fbeb2 100644 --- a/drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c +++ b/drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c @@ -547,12 +547,12 @@ static const struct pinconf_ops jh7110_pinconf_ops = { static int jh7110_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 jh7110_gpio_free(struct gpio_chip *gc, unsigned int gpio) { - pinctrl_gpio_free(gc->base + gpio); + pinctrl_gpio_free_new(gc, gpio); } static int jh7110_gpio_get_direction(struct gpio_chip *gc, -- 2.39.2