Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2012941rdb; Tue, 3 Oct 2023 07:52:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE8ZQN0IoUGxQsQ/FomG77lWRC9fdZOYed184HMWZPs/VadNMPXF8yLI43/i2n/lKinoOKC X-Received: by 2002:a05:6870:41cf:b0:1dd:651a:72ce with SMTP id z15-20020a05687041cf00b001dd651a72cemr16376761oac.33.1696344776689; Tue, 03 Oct 2023 07:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696344776; cv=none; d=google.com; s=arc-20160816; b=TdKhm84PyjU2BTlwFHU+9UzR5L7ydyU6/2f5h5NMxd930cOjNSjjjJaHdu1rbK3ckz HkXmv1iusy4tzt9QqSN4bYeiGZC8lnrpUDYUIvJ6k9HWGQvW6wdQruXnDp2DXNRuCqF3 Sb86IHn+akV4MtbuNXwDmNBXcz5Xm8Em/EqjAmK+NjcjYyOBj0/3Jxyd9b8nTBjN8vp8 nHdlulFXoHxPLdBApzo2qeeuMJtFqZE5sL8uTeb9neftmni+3pjuowFyytASIvF9aOgm uxNKdMLWiCYjt71zjVzgSdfFzDFT2andwjwB5yRXXB9d8hcI+L6HfGSxwMbNGsrsq4MP PILA== 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=5j3W5gbiwB/5gwTM96ugP2be7g+wEOoUYMu+wXUrQYg=; fh=pWErDKqmL6WGtiIt4dvQjWWPlMBxPLw4lk+PlqoyAaY=; b=ao3mwughs8gf0CHUmGbcnVAmBc/57+eMaRSPhmpijbEKttLolXb4/8SQJX6SvxoKHr CNpAMUpr9gpdy5G9CQPEMEC8sZyhld09F398KxyhOFhUPJSXV83JIia1QmJ0vvl79R9P hhpOv6UV5NFEcA/gp/lpvrB1tiNOGQyChbk/qsC2KsA2ww+dMdNfRtL0Icr97ogAOqrx KVi11jcw4HnItcefgxclaalxMKl5S1qsvMPyDwh0Ptmy2ZY6UOO/SYsKw/6+E4TM7raN oifGxE+CtY9kjrXmoQDrTcwaxQWBNUQP9LSJg9yxUoj3VdPlr4kLOMjX9aBRF5y2qHW1 n6Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=Oi1uY050; 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id e5-20020a637445000000b00563fac86c55si1528226pgn.134.2023.10.03.07.52.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:52:56 -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=Oi1uY050; 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 BA133819FC5B; Tue, 3 Oct 2023 07:52:55 -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 S240396AbjJCOwv (ORCPT + 99 others); Tue, 3 Oct 2023 10:52:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240328AbjJCOwR (ORCPT ); Tue, 3 Oct 2023 10:52:17 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3956710D2 for ; Tue, 3 Oct 2023 07:51:50 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-40651a726acso9921775e9.1 for ; Tue, 03 Oct 2023 07:51:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1696344707; x=1696949507; 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=5j3W5gbiwB/5gwTM96ugP2be7g+wEOoUYMu+wXUrQYg=; b=Oi1uY050EtQcWyd6td7XCO114xbZxYCsMwdl3dnnxGbsnmDQHhLQYeHpkxOzf7Wgf9 afRMwRqX/MPFUVgP/UBJL1BL2wDtfHw+RnRGuKqhHgYnKMzwejw10OpaSrKxDBtDQWBy oKIvbWjaEMgSv0zfV+JcOP3UxhE9vz7su1wkefzZ3zbMYxceahVhbjCKUIofZ0z1916C dSEnWU7diLYwX40cbh2q1t1adjGrXg2awcU0v6nxdNryUBR/eJgcxYGWkgWq2wAGnT+3 TzZuZjDHpM+rux6rYLMES3yVRJ9UAE9sr8eYTlKPg1uhZstS5Wmj505iLKoozygk0VFh Kfvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696344707; x=1696949507; 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=5j3W5gbiwB/5gwTM96ugP2be7g+wEOoUYMu+wXUrQYg=; b=ZGOG8Tt7MEh8Kzd6vv1p8kKpy/mSWjE0MXaFbYDLuVskAO3awTOZUlRh4DC5y+Z8UT Dc50fGKk0AQkSkWDwSUs7BZx2HxgF9uTscOnFduRpXx2PyLoeEuuepzfHmY2EM/pIpBZ HOv55ErzrsiHVJuLzX0HZ7jpUWpugsW3eZOmsPFzpUAYKnVgl6Znb79VcVAHxHumhBjc wkMGkDh16pJGbc2zQSzgzv88HhACMhgXRchj9uSoN1hZiw/C77ZWGfZo58OcUGNhAsqK 5jiiB2LflYuUjkk/HaGmpxMLJkwBWxpCLovUS+nbuhk7m3f/kXaxtDpz+XphsJ0Kb9Bv bAhA== X-Gm-Message-State: AOJu0Yyt1u6aQf97VssaO88HPPq/pPwm6cuWoG6bDYjmDS+glSulkg2E W5SpzC9tJhyp9vn49pbmRjPCTQ== X-Received: by 2002:a05:600c:3786:b0:405:3ee3:c69c with SMTP id o6-20020a05600c378600b004053ee3c69cmr11960246wmr.15.1696344706839; Tue, 03 Oct 2023 07:51:46 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:1f2d:3479:a5de:fa35]) by smtp.gmail.com with ESMTPSA id c15-20020a05600c0acf00b003fe29f6b61bsm1462773wmr.46.2023.10.03.07.51.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:51:46 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Patrice Chotard , Maxime Coquelin , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 29/36] pinctrl: st: use new pinctrl GPIO helpers Date: Tue, 3 Oct 2023 16:51:07 +0200 Message-Id: <20231003145114.21637-30-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231003145114.21637-1-brgl@bgdev.pl> References: <20231003145114.21637-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham 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]); Tue, 03 Oct 2023 07:52: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/pinctrl-st.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c index c1f36b164ea5..ec763572ab3e 100644 --- a/drivers/pinctrl/pinctrl-st.c +++ b/drivers/pinctrl/pinctrl-st.c @@ -719,7 +719,7 @@ static void st_gpio_set(struct gpio_chip *chip, unsigned offset, int value) static int st_gpio_direction_input(struct gpio_chip *chip, unsigned offset) { - pinctrl_gpio_direction_input(chip->base + offset); + pinctrl_gpio_direction_input_new(chip, offset); return 0; } @@ -730,7 +730,7 @@ static int st_gpio_direction_output(struct gpio_chip *chip, struct st_gpio_bank *bank = gpiochip_get_data(chip); __st_gpio_set(bank, offset, value); - pinctrl_gpio_direction_output(chip->base + offset); + pinctrl_gpio_direction_output_new(chip, offset); return 0; } -- 2.39.2