Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3117472rdg; Tue, 17 Oct 2023 05:21:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH795NnpOPbyI5YuKsBy9qpJy0Me+eyD5RUMZpdyy/Qh8CRy/YolQY4d8x+Q4NAUgB1mRly X-Received: by 2002:a05:6358:cb14:b0:164:c794:df81 with SMTP id gr20-20020a056358cb1400b00164c794df81mr2284842rwb.8.1697545318573; Tue, 17 Oct 2023 05:21:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697545318; cv=none; d=google.com; s=arc-20160816; b=hFxE3dzlx2oCSVrj//fgnJrpMUbNADESmgWENGiIenYqvVm1uOlnqse5t05pYJAt9q Zh/p9TcZtF54AbLN6V7erapCqPuwlOxVxOkFBeunyUdVgG3pVHY9SThhej0uRSAwi59K Y1soAgA5hWhphsFv3xjF5Q3O6j4qTFRZ7vlSSZAledzTPnRqL0DPcbnp7Oxq0WrVoZhX 2K5UuAIpFtUElMtLorP0neEQbwa3Dsp8Rxr7C7Wgdw0dWwZj5DsraFIHmhikiE7BEkLv whJJyl/QMIHWeT44E9CwV1Phcy23dPLj60PNkbIuSr3SPKncIOyM+9zK+boeCf6L2vNW ncSA== 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=647iAq3iBI+ayvQVhhErvz6gPvZUyIZ/SN8sLbjPkvs=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=MNMphrpbhIM0vX3udN+pMukbWM5cDLU2e+dCWjy2X8hMtAm0doTcmGYZSjy8uEHyLU qTsGuM9bK5eRgLKrcUlVib+bM5oCe+xbR5X23+EV0ZidQ2D1bDIbjO4svfs4hL3UWqxm v11nnneZX80VKC6hLNIXNDDzYdZzokz0KLTwC4IGuDNLyGrboulEQBOCET+8oEgsNxNG RWI4RNEDqjiOjr63+9ciEuCSBn1I24ZVMuy4ePUTSxtSCCsL0KNZcjtAI/DHlwBFxmJ8 rk1YsWHEX5nGoSFe+Kov+SlK1H0YA+3fWJhTfZlDcmTGW18GQvYSg6EyCkNe3EapfN3U kpbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=PrZmBJnC; 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 e24-20020a633718000000b00578d6cb1a16si1701668pga.178.2023.10.17.05.21.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:21:58 -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=PrZmBJnC; 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 317DC804A9FF; Tue, 17 Oct 2023 05:21:56 -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 S235168AbjJQMVn (ORCPT + 99 others); Tue, 17 Oct 2023 08:21:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235143AbjJQMV0 (ORCPT ); Tue, 17 Oct 2023 08:21:26 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 625B01980 for ; Tue, 17 Oct 2023 05:05:22 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-50435a9f800so7041072e87.2 for ; Tue, 17 Oct 2023 05:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544317; x=1698149117; 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=647iAq3iBI+ayvQVhhErvz6gPvZUyIZ/SN8sLbjPkvs=; b=PrZmBJnCFQbSaYmMWwaI9AeJY7fxDFfdHwF8NX26R3vDo8OZTWe6gqPdO2qh08/jZ/ oluVvqojNnMi2o3WWdzcdmuL01mJtpV1hZ/UK9wF1ASk5ArgzKkBdyaGxciVRWD5dZjv cMneXcZqDp16IrEPMn4qpP+a2KYAUB6hpzL1w1ERdYstYMhiUeTn8OQJaiES7V1QnNBC tFsSlY8jHFn3QQo0Us+RF0unQgV0s++m4pAnQakjnrJ8Gx/2cVsEkXI/uO4TNxpP6BCa V5n5CTe8ObXNlIl73izYEe22IdFNshuPjjvD4IruAYc0z4xL2q5Wh5x6vtJGwBv54gOF kHfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544317; x=1698149117; 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=647iAq3iBI+ayvQVhhErvz6gPvZUyIZ/SN8sLbjPkvs=; b=anAMvrDQIiZRxVkbY6wv9+uGhSUWiPJZsjMfLO0MQX7OYtP6Q5KMITPVp9gbZov+Bf Pl3K5switeGlBIITNX12ln4QSrmGQpsiDg1R+mTttL0GIk0l5DUxk8un1HK9S1IDN6El 6l/K7fDpDRc5T+9V+hAOo7HHiODl27M+deVgOZlrfo3h1wmyaYBUUKN85lBQUdRSsGka hJ2UuQo72R9vdERa2vSqJHzX2nWY2aE2ilf0O3/tde7vfHxGvJOZgOFpIG3KhS1Pf+fB DOAFTNSDopPdRROeYEnWiaqiuYXhbJhSioghwPEBKvoIxGIXbKDyEGezhB6s+N5w9+Jp de0g== X-Gm-Message-State: AOJu0YyoXvChKlq3TALOOvma9nBXEWjODFPhyVYeWPI86eDvkWG8uBPb +fEiPkhDgqsr2hB4nYqz0NYRZg== X-Received: by 2002:ac2:5585:0:b0:507:9608:4a87 with SMTP id v5-20020ac25585000000b0050796084a87mr1573902lfg.56.1697544316763; Tue, 17 Oct 2023 05:05:16 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:16 -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 v3 30/73] pinctrl: as3722: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:48 +0200 Message-Id: <20231017120431.68847-31-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 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]); Tue, 17 Oct 2023 05:21:56 -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-as3722.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-as3722.c b/drivers/pinctrl/pinctrl-as3722.c index 84b47a6cc3a6..205937f7f9a1 100644 --- a/drivers/pinctrl/pinctrl-as3722.c +++ b/drivers/pinctrl/pinctrl-as3722.c @@ -502,14 +502,14 @@ static void as3722_gpio_set(struct gpio_chip *chip, unsigned offset, static int as3722_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 as3722_gpio_direction_output(struct gpio_chip *chip, unsigned offset, int value) { as3722_gpio_set(chip, offset, value); - return pinctrl_gpio_direction_output(chip->base + offset); + return pinctrl_gpio_direction_output_new(chip, offset); } static int as3722_gpio_to_irq(struct gpio_chip *chip, unsigned offset) -- 2.39.2