Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3107626rdg; Tue, 17 Oct 2023 05:06:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOGhacSwGx69Bn9U2A2iMvo97i57bW1lfcAuuljCTLn5TOrhLCWTBaC90SqGcCGSFWePvy X-Received: by 2002:a05:6e02:1749:b0:351:1311:c282 with SMTP id y9-20020a056e02174900b003511311c282mr2610566ill.9.1697544368030; Tue, 17 Oct 2023 05:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544367; cv=none; d=google.com; s=arc-20160816; b=kx5Aw4FYJf+7Q5J+POdasPCcuQZd18fRqiSyG3d7ew27GV1q5Mc+lPUgXOTZof1zj4 tJ10bP2RJUtmhcH+mCiiu/KOPJFLd0BoImnj4wjhaXE99teYTw2KWah+ExAH8Oz8ygci qUcq36N6sdZdKWdeMa1pguPmuhPFTcTCjx3Sh9BSerVnWTG6z7rn1qmJkxQzep4AKGMv EuHPwJUuqNt3wO7jnBsuyac7NkZUxxKnXY4CgAzJcY0F9XsOUKphHWGFqfa4FTQANHpD 0I3osaGr+wuNjfgeTSf2TPiXI2y9ApD1+w5qed8Ge67ePv3JKISs0hUL/uE4xnbW19zq k6kA== 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=Vai4SzqfuocTRSn5ctHCW9VKMc1EsxJBBmmicKiWbek=; fh=yVmF2a0pwYYAXBxZ+d3PdgzkGjUZYMFI9IcUoH9dwEU=; b=hW8woIbRXe2Nk8vyqN5yqt/+UT+nyL9T3kqfgh0OwokvE4vFDjZ5MpG5ZMQi/dTFvi Pk5JvRn+8OWDtzTkjWPsNMvBhe7RaLCrYZ/0gJSQPVRSL+KNeT4K+Qc5t+hxVGoay4zk Qz41mg3moPISTNFOQdBIPdwRSy7pHzhDaW15EUPca5/hBjEStXBDOevEd8xzdQKrY3bj rKp0g5rrREY7jA2IPvJjj1v1psFVbu3YKmcdyfPHGIGkauNemqHjcr6gvdOfRywkv/ET SHMT0S6/VVRyb+GSY1Z1nDS/ELAkGVqQvrEbXtEzEkOMmD9+TqhLxt1nRpRaULRKh3vb b0xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=u4qfHNLq; 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 y1-20020a655281000000b005aad5164a40si1572968pgp.246.2023.10.17.05.05.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:06:07 -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=u4qfHNLq; 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 3CDC5801D659; Tue, 17 Oct 2023 05:05:14 -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 S232093AbjJQMFD (ORCPT + 99 others); Tue, 17 Oct 2023 08:05:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234659AbjJQME5 (ORCPT ); Tue, 17 Oct 2023 08:04:57 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C097EA for ; Tue, 17 Oct 2023 05:04:55 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-405417465aaso53787155e9.1 for ; Tue, 17 Oct 2023 05:04:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544293; x=1698149093; 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=Vai4SzqfuocTRSn5ctHCW9VKMc1EsxJBBmmicKiWbek=; b=u4qfHNLqnys7uHtSLjuIw2hM1O0yo5BQuVJUAFnLyIxGZEsIUwbvzgd8YX4ir2dab2 SkZ9GUxW8nGlW4ALVEHQTRpc+VEGDLRWNLKxI2xS8gtYtu0X3h3za5Kyx33huyQRzmdf PXwFg7Vd7dORjdGSNm6f0bVxnniaj4PBkx7GNWKo7g2+OAZ29qY7uWlrWk7qvn7hh5js qgvd1rJmCXOFabl6ToJINWl/GyTK0mNRVqu6NbRY6aISTMDbYjw+bs9nUo39ATz7pefY hX27EUadYldk2ulIJZXVpj+0cOevq/hAlA/6LLuLGLjYTjAiAR+HtT0YnX2FiQdN3Rrn 8YLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544293; x=1698149093; 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=Vai4SzqfuocTRSn5ctHCW9VKMc1EsxJBBmmicKiWbek=; b=EKcnD1gVa7pYX3KV7iIgETmseXeXuLDP2PV2y0dG1OqOipOocKlHBlJr7/fh4ceaAG pfcy9sk9WK++MBqoWLBqbBw86XsvSKZtKhAUm5fBOjKZOgzc5DBsL0SPXA0vx/ykB/rs l5yb6cR4QMRUlIaJ/0/kxsKx1Nj5WmiXiN+fNx/fI/EvQMPSICCZg2jMWBmSyHU5T/4s 4l8C6qGOTKqQfpMNsS+QDpvEwVJHzrZAKuGVAyZBmMWCwaellZYnFe4PRssI/SLAlbb6 E5Q9t7UGgmvGyKe/TaUP6vQ7WvVQCerA26LBUnIsVnHiFYf51Yv1gBaH7HQ7tczt+Nll av5g== X-Gm-Message-State: AOJu0YxPekGPAHqYR366mYfJxgj36gz9w/oW4og7mG0sQ/JEWjkQwa0c BizzJw7m/HEmJGcrRCpVv52+eQ== X-Received: by 2002:a05:600c:3ca3:b0:406:6964:7e96 with SMTP id bg35-20020a05600c3ca300b0040669647e96mr1657118wmb.13.1697544293118; Tue, 17 Oct 2023 05:04: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.04.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:04:52 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski , Geert Uytterhoeven Subject: [PATCH v3 05/73] gpio: rcar: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:23 +0200 Message-Id: <20231017120431.68847-6-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:05:14 -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 Reviewed-by: Geert Uytterhoeven Acked-by: Geert Uytterhoeven --- drivers/gpio/gpio-rcar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index d8b1baae6357..47121e1a6d4e 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -275,7 +275,7 @@ static int gpio_rcar_request(struct gpio_chip *chip, unsigned offset) return error; } - error = pinctrl_gpio_request(chip->base + offset); + error = pinctrl_gpio_request_new(chip, offset); if (error) pm_runtime_put(p->dev); @@ -286,7 +286,7 @@ static void gpio_rcar_free(struct gpio_chip *chip, unsigned offset) { struct gpio_rcar_priv *p = gpiochip_get_data(chip); - pinctrl_gpio_free(chip->base + offset); + pinctrl_gpio_free_new(chip, offset); /* * Set the GPIO as an input to ensure that the next GPIO request won't -- 2.39.2