Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3109347rdg; Tue, 17 Oct 2023 05:08:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXzKFJbXRBfZAZ0s0+G37QxS17wUH938wvOsct93NcH2wO0HUs7+ystGRmyG+0yIxxGrwg X-Received: by 2002:a17:90a:cb84:b0:27d:e29:8352 with SMTP id a4-20020a17090acb8400b0027d0e298352mr1814880pju.45.1697544514511; Tue, 17 Oct 2023 05:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544514; cv=none; d=google.com; s=arc-20160816; b=edoiv89Fmy8NTQVQkblOOYyrWppgum9P5ohhRcaUx1UgGLu2fOdNianG7dLxXM3hqa pwaXuqaWX8lvCnI/PjFWrrj/SHumlY0ISCTuuWMyPIxZtKwHrwlenNfGfRyx96A6Gaug seOa2AUxjeIKBK4VcGlcs+IEqI/Q5VnTy4yJAwcSRGSuscN7Q2eUmu5akcg3xSIT08IJ 7ViITqQGFxlPJvKW1g6Fxh2F82/VDxIZuTQz6cvygzTtATfBEJspGV47RIXRdwIGI1uq BPMXm6+JwhcE7ecewFaKUe1PopTJNsw20isypPlo0zKp5xZnrws9f79MtTQASkShSle/ w6PQ== 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=yEGizAbOxMwHBeRhJGcb8ss//xXj+RtWLOdU8JMZ+S4=; fh=9FoSMo86cVlGnxjDM4yoBV0v8UcJKx6eEhyJuxv5+JU=; b=wHJ1kd8tRcaPHgOiAlJ38TuZOwaE2Q2K+6eM1JLJkdwV7sk7LufTMUmBHc9CbLFMb0 Hy9yQlUnWtXmp0qVSJZEZSUEpR/CDqm9hUIHW63NDTzQLz3GagugydmPwM+7NH4w+qFM CcnN46SyQbiVU1Nm86drItvjQMDIt+wA5o0/DSdnU51iNz9m68DanZnYrYGH7BhZzQdg uWNJiE5TeWZhy/wt8F6R4b8gT0RKir4zPS0wPX8+r4baEXuIHxGKtluaWPDCVyvQ/F26 zbes+A3Go5kmG/nAESskSqzfBBM4llF4SW+YJdbgcDOGPtVAWYAViIkcZFo40PHWQvVf 5VuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=GIUDjfOe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id j5-20020a17090aeb0500b0026822221502si1527428pjz.163.2023.10.17.05.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:08:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=GIUDjfOe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 0AAA2801B9D4; Tue, 17 Oct 2023 05:08:10 -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 S1343765AbjJQMIG (ORCPT + 99 others); Tue, 17 Oct 2023 08:08:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235030AbjJQMHV (ORCPT ); Tue, 17 Oct 2023 08:07:21 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF77E19BB for ; Tue, 17 Oct 2023 05:05:25 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-4064867903cso62408435e9.2 for ; Tue, 17 Oct 2023 05:05:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544321; x=1698149121; 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=yEGizAbOxMwHBeRhJGcb8ss//xXj+RtWLOdU8JMZ+S4=; b=GIUDjfOeExe7e8WYs8tVMrgzRTUUx5dBVFxo6ksvEFa3/ohDpIyDJuQYP6xjFqki4U 4Cs8s7K4XaZb7vyUsJ5hrW0g1y9spP/wgvFxTaFH+TGFsVP7fkQ75xQBBT/y/86O/Yr3 boZ5ufFXIgKDgos+NOjZDJQlulU4UWmyNtxpXDeHHJkLTGUwy1OcwlGfwlN1eBGyAN1D IZeUI019B6iBhBV2jCdlcb8i53g2zVdNqA8R9FVhkFXfByhjlNQUGi8m7pRrCeant/fy DpEhjTeNGEjoG2un4xmjtMFanCq8nWM+HHpz/I+2QN2Y3BVvf73qPZg7zQr5Tw+jD2qG l/1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544321; x=1698149121; 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=yEGizAbOxMwHBeRhJGcb8ss//xXj+RtWLOdU8JMZ+S4=; b=Eq6KchUt8CetwCezUOgkv5zldFoH8tevGg7on+92Gzbr9XQMQUxH+nEHMHj8yJyEuX 2On/jFRhsp7SNfWV9E2BqT21IlXGzG6rkKg/0I1GNT6pc011K3DLb6bRh6+/OmAESX47 zh9kdAo5WvOzCdG40TTijn72MBKv6OSbqlPc5O/mel9p+iTr70RHB0TivJjo78On2zl1 Nfyo+P18MFW6iF3vypwXTCjuGA50+dxlP/iFmKFFLXKgTtTac/IHOGxpCpDrfgO+nBXH +OH4fxhqPUrP7ZZQaQnQk02oAtgVCquG6lWlYs14otKwzckm6ySPVx/Ez0j/phEnUmvd X8Qg== X-Gm-Message-State: AOJu0Yy8ljC8VsdCpChYloBqrl6wAYGiYIn/7AGfHF4NZBiYfM5ifN7q DWqAY3DV+xVuS+ZGr4vK9ZUeHg== X-Received: by 2002:a05:600c:4fc8:b0:406:53ab:a9af with SMTP id o8-20020a05600c4fc800b0040653aba9afmr1615188wmq.10.1697544321692; Tue, 17 Oct 2023 05:05:21 -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.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:21 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski , Patrice Chotard Subject: [PATCH v3 35/73] pinctrl: st: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:53 +0200 Message-Id: <20231017120431.68847-36-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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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, 17 Oct 2023 05:08:10 -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: Patrice Chotard --- 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