Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3108566rdg; Tue, 17 Oct 2023 05:07:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPLqPJMZ99mxJPCyR+tuDQf6n9xQqEPy5Goi21aQyFOWvHWdYnBTCw2G/M2pNJUHb+H54t X-Received: by 2002:a05:6359:5e02:b0:134:d806:69df with SMTP id pw2-20020a0563595e0200b00134d80669dfmr1694266rwb.18.1697544446328; Tue, 17 Oct 2023 05:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544446; cv=none; d=google.com; s=arc-20160816; b=cfqrPt/vI+wr3cpKu8zRGXj+wYcbPTgtkEH8bXZPdP0f98oiZCuiXDZqF4U7GSBmSm Tb5CS5kMoMStGoTqTs22adReedmPXsnX1G8YqclBsnxXmP9bjOYkS0CJh1Tcre1gMsp0 Xr08kTqbq1UlkDNwjtazuK2T9dOKJiTqziIXbeec1jsj2jGcCKx4Ct4mpD/XJURUA74Q EcUb0oy3cEAQB2v9eOWdFhndCq+bAcNRFthsQ6gVJushZNw7zo9kp5wclkwXIRhduGZn 1UkwXLbVfP/u67wb/R6q/sfmounZvoenT5a3TC0YjiK9ctfDn5KAQr09nA8AfLp3AuJE UjVw== 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=BYro6G3w7HrOUdE8TTDPmtksHa63Nm7WFMk5y+Hqbus=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=eODPjW8mFpEHlHQThPyzceAC3qr1bk1LoMNfyZkOpRP2ko3VfLaytwqlno9nDwdPg4 8LM5y0XiYo+JziOOkngrHHn93WiYPKnCtndWAg+65oMxH556k3cNcENix8EdQMs7AXj6 8nCanfr4ySVSFlYOor/8iq7E+qYCVHjcm074W1ZDNsVQOX95c2Je4mqyM38iB/98A/4i 340otzbliqTmcrA/Z9bX/mlxKW7X1sIAYSZeHdRpPDPx/sHS2lTTnNK6UqGjR/Z4k+3l VKWefGdaC1qnAQ8iUD51rbkQKpZqZODHqAkWTSJnxif5Y7NJ+vXtzdfjoDaYzkX9w5ns bdfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=HO3cgG5H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id q125-20020a632a83000000b005ac86e7df6esi1608912pgq.363.2023.10.17.05.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:07:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=HO3cgG5H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 06F3080CE7CE; Tue, 17 Oct 2023 05:07:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343759AbjJQMG4 (ORCPT + 99 others); Tue, 17 Oct 2023 08:06:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235085AbjJQMGS (ORCPT ); Tue, 17 Oct 2023 08:06:18 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44AF610F6 for ; Tue, 17 Oct 2023 05:05:15 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4079ed65471so4276275e9.1 for ; Tue, 17 Oct 2023 05:05:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544313; x=1698149113; 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=BYro6G3w7HrOUdE8TTDPmtksHa63Nm7WFMk5y+Hqbus=; b=HO3cgG5HtWVNL/eHwjKF9OxvlSI3gRHsXFysHisKTvAg1Hl21pjrperPF6HxhojRUj tXZ0LIH/wA+uieRIeu7An13uU8WpbocMbhBHYDgzbMBZpn1nVRMM1dxvQALfihBpk0sy XZKz2vSftvDT1KkQbFqEm2+2ZhpBX7Oz4qEZKLUFAC6j4PeX15f4yIF0vIiLn5jMKLcp OiLrBjjZr9CCvTdQL5OiUnpV7UxQrq9ySBTzI93x3ooxPbOcNyODzf4LoA1Csgsd4w53 AsnBD6PtTD3m+zs/GwKznbCLQmF9QRDDN3qxG9CN9JCnsAuA6KG+kyMjOhuQFXAA1+mU lPSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544313; x=1698149113; 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=BYro6G3w7HrOUdE8TTDPmtksHa63Nm7WFMk5y+Hqbus=; b=ahcfu/pVQwdM/FhNdsWWMBKhlkrMXesrxkIhly32rqYOGs7v9khPBwoSYGcZwxqG9D eOXUkqTvBH2RYWy0g/g/saZN3C4sanRLbxhiP3WtsUmeDASdY4LQ9scOU1C41Vfn8wJx 2RDFU1MLPmFseQSMHRMSuSo88+spXSr9rmY293cqv7V0v5kH9IABMMre6PFFCQ2Surmv Y6yoWs2vCczBVoWXYsJCdwPZxCzfkcgpBY0VEePoqnsPnvhQqRNRnBbzbPd6ZDeHlr7L LKZUDMEL47Kk2UwzU/5/DQ6ktmPeVDbNRa2e+ggeLojO8GDtiyIQ0Bc8HkCmLM9hxmTO d6Gw== X-Gm-Message-State: AOJu0YwAcA66yc06tjbxf9m2Ato27MQlkgVPQkjD/p70HS+k1WtKAzb6 GJPmIbDQQHgOTibAuyt8JyyDPw== X-Received: by 2002:a05:600c:1c96:b0:407:7ea1:e99f with SMTP id k22-20020a05600c1c9600b004077ea1e99fmr1416956wms.17.1697544313282; Tue, 17 Oct 2023 05:05:13 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:12 -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 26/73] pinctrl: mediatek: paris: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:44 +0200 Message-Id: <20231017120431.68847-27-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:07:05 -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/mediatek/pinctrl-paris.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-paris.c b/drivers/pinctrl/mediatek/pinctrl-paris.c index b7cb5a1f1060..14b151aec2f9 100644 --- a/drivers/pinctrl/mediatek/pinctrl-paris.c +++ b/drivers/pinctrl/mediatek/pinctrl-paris.c @@ -916,7 +916,7 @@ static int mtk_gpio_direction_input(struct gpio_chip *chip, unsigned int gpio) if (gpio >= hw->soc->npins) return -EINVAL; - return pinctrl_gpio_direction_input(chip->base + gpio); + return pinctrl_gpio_direction_input_new(chip, gpio); } static int mtk_gpio_direction_output(struct gpio_chip *chip, unsigned int gpio, @@ -929,7 +929,7 @@ static int mtk_gpio_direction_output(struct gpio_chip *chip, unsigned int gpio, mtk_gpio_set(chip, gpio, value); - return pinctrl_gpio_direction_output(chip->base + gpio); + return pinctrl_gpio_direction_output_new(chip, gpio); } static int mtk_gpio_to_irq(struct gpio_chip *chip, unsigned int offset) -- 2.39.2