Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp768219rdg; Wed, 11 Oct 2023 05:12:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGnPBDTkaQTFi8v5+4ESo2tpREPnNfnz4lud8uVpPf6F/ewIroT43Jl88ZY7mPIBKdc2d3z X-Received: by 2002:a92:d8c8:0:b0:357:3ee1:e038 with SMTP id l8-20020a92d8c8000000b003573ee1e038mr3410525ilo.30.1697026332129; Wed, 11 Oct 2023 05:12:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026332; cv=none; d=google.com; s=arc-20160816; b=jgDHVXciJP2aoKszITiFUFN0i0F74BgzR7Fo96VRqa3uczGLoxvuiby2fbx9m7pRlo jbI3Dmq1sEWADRkzRD9dL9MnowIaF/j3YHAc5HtadIyaD6m4nBj+VKRfLYSENS8LPdbi B0QJKf8BUKolv83j5vOb063lyZsnbpgHjBVy4WvSA9CqCqaA7HxePH6H8Kj17rvSj0jX PxNY9rjWqcW9xYT4hScZGovSPxoCGC/fpHDUEzzp89RD4HZB7q+pKrFfy9cY0OV1B8pd OPBVWKjlwDZuH8UEnw2g0DobuE/lRjnCavVzL3UkPY/85alRg5OgkPSUUs++hY1x4Edc Z3Ig== 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=gdciYkeI9ojIVFf6NUkn/u7//A2Bey8sZm2LXyWrQBM=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=ZRjtS3zz8nfo57/hQcB0pQBPWYkJzTrIgpgn2lcVcFBE0WddeFQ/Z3va8JscLYmmde fDPZKJxV/C6bGaN+c++gAztV3nXe8jnUUGLSKlTkYf5PNc2+RRsavoBfzTeA8CBUOYfY RZ4/pyIn+f7eDY3cH0czx6/TXcyNlgBKDx394YTgQsyv021pDec/MGR2TLo1BJWO1jw0 QfmYN4j0dwmG/R1el1/K5VsPsMJvtB/uSfmldrl7PLgzFV6Cx2gB2reosw55uQKShzyP 1RSZpSRTae5KV0K3oZaXmV0crmJWOoOrpAy9rgrE8h4jELboZATkyauEyTfUe3Gc8l9k zOBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=lbRlGdsd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ch7-20020a056a00288700b006901a8f5dadsi1415039pfb.289.2023.10.11.05.12.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:12:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=lbRlGdsd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 C6B928108BFA; Wed, 11 Oct 2023 05:11:58 -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 S1346728AbjJKMLI (ORCPT + 99 others); Wed, 11 Oct 2023 08:11:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346868AbjJKMKN (ORCPT ); Wed, 11 Oct 2023 08:10:13 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A60701BC for ; Wed, 11 Oct 2023 05:09:41 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-405361bba99so62445175e9.2 for ; Wed, 11 Oct 2023 05:09:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026169; x=1697630969; 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=gdciYkeI9ojIVFf6NUkn/u7//A2Bey8sZm2LXyWrQBM=; b=lbRlGdsddzuxZX0OBbBSiiUDbqJC0QX3Ch30M5gMRYizVpUF9YvXXzXDZ5JnVRZI42 a87tSMk1D6axceX5ultk1tpGeHAKBGuGigC+PQwx5eD2zDDfpjXLqR9qo297GrMRVMzm sPVZTXvpjO+h8z9Rl67bXnaj88KnEQ52BgbCpMNRkpBnblpXIIbclZ+yCJzGPuf6YDlv 2LerYGVpXZhWax9xNWPMFHLJDD2Z5P1rlpjRD2zaMk2z/6C6RMTyLzW55UkaH/70NQXj uOEnzRpPn7TVJ/gnCycXySi22+boakFIXlmbJ3roRA1O+4mMakLHHa92lj6HufzfU4C7 EO/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026169; x=1697630969; 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=gdciYkeI9ojIVFf6NUkn/u7//A2Bey8sZm2LXyWrQBM=; b=h/mv4F2vKLbh1yhm8sAoci1TvFlQ7hJ4W3ansZC7X+Uu9sNKyQHYJnoWGnA4AYHUKE nSzsevQV9vITv4QUmc7XQWEKl/fzmeqlxIqtoDeyLjuM9PC1WzQmIcmlaU+e1EvxOF+n toK5OHt25vIj5FzwDZOJAoS9YIpbuJdwamM0DSgkr/dUyFziAfi1f+qYznCUxsm4TWzr 1jCRrem85nhYTL8LRAMRBNG9S+miuyGdVXtd08FOZ3Or3gA4Pyllbyw7FeRS7+Op0ww6 /qEiS39XD+lt6u7uIBYBwmoSLMYkfbh9YiZg+BxVovxKu3+ObDc2UzFAVAVMF6LGdjWi bv7w== X-Gm-Message-State: AOJu0Yy/b6quKPE6Wl9CjeCGQho9fnPEvrHkJhqRR3+ZB0/JjNQ+Yupl YMsgy1p0hRA9AmwyIr4uOhhHcg== X-Received: by 2002:a05:600c:1d8f:b0:407:3630:f35 with SMTP id p15-20020a05600c1d8f00b0040736300f35mr13381234wms.9.1697026169023; Wed, 11 Oct 2023 05:09:29 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:28 -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 v2 24/62] pinctrl: vt8500: use new pinctrl GPIO helpers Date: Wed, 11 Oct 2023 14:07:52 +0200 Message-Id: <20231011120830.49324-25-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 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]); Wed, 11 Oct 2023 05:11:59 -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 --- drivers/pinctrl/vt8500/pinctrl-wmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/vt8500/pinctrl-wmt.c b/drivers/pinctrl/vt8500/pinctrl-wmt.c index 6fac30de1c6a..1a313295611e 100644 --- a/drivers/pinctrl/vt8500/pinctrl-wmt.c +++ b/drivers/pinctrl/vt8500/pinctrl-wmt.c @@ -528,14 +528,14 @@ static void wmt_gpio_set_value(struct gpio_chip *chip, unsigned offset, static int wmt_gpio_direction_input(struct gpio_chip *chip, unsigned offset) { - return pinctrl_gpio_direction_input(chip->base + offset); + return pinctrl_gpio_direction_input_new(chip, offset); } static int wmt_gpio_direction_output(struct gpio_chip *chip, unsigned offset, int value) { wmt_gpio_set_value(chip, offset, value); - return pinctrl_gpio_direction_output(chip->base + offset); + return pinctrl_gpio_direction_output_new(chip, offset); } static const struct gpio_chip wmt_gpio_chip = { -- 2.39.2