Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp768249rdg; Wed, 11 Oct 2023 05:12:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjzxMXRGzMASyU8egUEhkySu1HjmJfoyLhde+xx7PUUXuKAvuQPM70wSu99SV750ru93g+ X-Received: by 2002:a17:902:7207:b0:1bd:ca80:6fe6 with SMTP id ba7-20020a170902720700b001bdca806fe6mr15770452plb.41.1697026334000; Wed, 11 Oct 2023 05:12:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026333; cv=none; d=google.com; s=arc-20160816; b=gdWMbdBInK4fFQwvkD24YGEWW/D/bcWXnUnHnMSTszSEYq6W7qyQZT48gHDu9YHYPc vqxH9tABqTE0UCaxvHiJiZDbpigxHOprr+EZ/8yz4lLSwun0Zbq4ilgYkgdiaH5ZWkca UHiEgilLjWMqpyATM/oO4ZFZ/wTNtbt6+vt7c+LGhZ8Ha8hlf2yYxx3RZYFSZ3CNRBLN 8L2O2dDtg4TPuTxjOy5iSMHSgOkX6BakpIpgcW3V50j97oQ6MeOlp4HKyKAdo1X4rrWA dv6VUrfsNBOryCpSfkZvInvGT0LWboVSlOsVvSc8ArY8U5txFixB6up8I3ySXfivfJv1 eDSw== 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=WYMWsAIssf0Z8SWo1B+dRqXcZaetoXNxGpgsWpXyQb6zNxj8gLqwmYjeu50L9Q3+V/ H3FfLLBYBUXj9vFn42Whj97qf2APARym6xfZ46k3/Qe4zmVPmpgYcbRYAaADHwzoLOhX 3xrZC3KQ/mqvKUF7RTeDMyfYU4w161+NJwdI2PYFmAYw66SHyCHPxCyhmJnScZImnuV5 JpcAp0YRm8sP35m5P4PbjR4/qI/Hf0TdaEnlPkXSkeFH1eE4M8v+mQ4/Qzw69Pvu0WY5 0KCoa1iDl1EZMlwVXpyv+/fiwBFpWwjqB/vEGhlfCqRDGQPBy3M+3VgA16CskS5w/tjT dang== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=O0SrwgqS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id j10-20020a170902da8a00b001bdf71d52b0si15232852plx.456.2023.10.11.05.12.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:12:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=O0SrwgqS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 2B76B81355D4; Wed, 11 Oct 2023 05:12:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346818AbjJKMLi (ORCPT + 99 others); Wed, 11 Oct 2023 08:11:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346918AbjJKMK3 (ORCPT ); Wed, 11 Oct 2023 08:10:29 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6AC6D7 for ; Wed, 11 Oct 2023 05:09:48 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b9d07a8d84so86895391fa.3 for ; Wed, 11 Oct 2023 05:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026173; x=1697630973; 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=O0SrwgqSiDvnthGGpBuFJLP99SV9+Gy2uZ9mMtPy5doY2UIbQ9SiWZkD9jpKviloeQ KTeTWNubXnLIjo8K19mLfyTa/gZ5CwIBRjkLP4HiNlxHO9uGfSd9mLQULS3xE9MxkqpT Eck3GMVEehXYp098aF25SFzvSR7jLDJuvd+u2ICJZriPeFrGteDnoxLn2kVjc/Dyqrtc +J3IZjEf76TJt+RJlpuOIOEJb8KYxD9bnwKIsKwU59kDim5SktiLg8xyYBnQ6KsTQfJu CYj21aVNpYe8PMJb//NQOMJZvr3e23wdsQZ6L3AiWwKVNNsZ+vP4p31Dth6zOGXlRMv9 6ioQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026173; x=1697630973; 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=m2EimMztUmRNfxaQpIYPWNtyb0+MSmsaeQ0ym6QziNpOdBf7GxyNBd6AGtN9RsiP5F LLoGbLjHvte0wA72GXX0/mLoBttpF5acA1qebNzv1BZamMxYs4ruaIkJYXMCIqJvT1M5 ZeeGQBSiulyzq/trwWTTMcvYTH2XQcsrDs3WhkuaRUCPP2Pdmw98xf3IQjBoQPJUEons CB7b4PkkhL5n3CgHTVbFuCJ/5f+Gu22654CsgX4GGXW3U0Mi057/B2B2e/49mRj/o5fj 9G5/yUp25XilUYadmb8f/KzEVlxxX9yLWKt7WkV9MlCFLF5kcNfrfOBe9/QrGnyjQo7l JuqQ== X-Gm-Message-State: AOJu0Yzl58XE41EIUEJSlhz1DtFYllkwUVhW4GQ7lhqmF+BVH5Mqfswm MrJZqg7F0S5HCOPr9EJjcCFyST8qyNn0vMopacQ= X-Received: by 2002:a05:6512:7c:b0:504:7bd5:a269 with SMTP id i28-20020a056512007c00b005047bd5a269mr16161446lfo.64.1697026173624; Wed, 11 Oct 2023 05:09:33 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:e551:3946:26fc:f94]) by smtp.gmail.com with ESMTPSA id w21-20020a05600c015500b0040652e8ca13sm19012253wmm.43.2023.10.11.05.09.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:33 -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 v2 29/62] pinctrl: st: use new pinctrl GPIO helpers Date: Wed, 11 Oct 2023 14:07:57 +0200 Message-Id: <20231011120830.49324-30-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231011120830.49324-1-brgl@bgdev.pl> References: <20231011120830.49324-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:12:07 -0700 (PDT) X-Spam-Level: ** 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