Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3109809rdg; Tue, 17 Oct 2023 05:09:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEaf3BdwIyeGqo5VmlyTl+KRERwVSPupebN9/zcOI2iMRBM4RY1qua9TbXzP4qnmBALrk40 X-Received: by 2002:a05:6a00:21cf:b0:6b5:608d:64f6 with SMTP id t15-20020a056a0021cf00b006b5608d64f6mr1994724pfj.20.1697544553993; Tue, 17 Oct 2023 05:09:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544553; cv=none; d=google.com; s=arc-20160816; b=xHN+UNNqIjZakDv20akinIuCjangwlWqfKUg5RGZ+znTo2Y+ZB/8wAr392GC9xgNVC mAmh5Qo8wj+TUp68enGnwTN8Fe1OARuCGuBXzvROiCgk8MONZ7i1pLHyZBlRbxO9F86y bm6uRgjioeCgHQIQsCgIzFxt0FjO7Z1xcJxN0gf5CB3P/GFJXfb2IiI6kiq/WC+cuBFH 4oL6XtqkWmh8jRaplCXMHK+q/H1BMnlylq2KSxgpy0fQ5OAi+sYmu+RH7Li48/h+3R/z MBpe+kXnS1/jKtKRk93JfHLYhaK3K6cXivLfh8C2b/GkGNWpLELS7o73nhe6Xn8GZ4D6 XMpw== 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=2gwFIIe2dfNDoGPAPdODaCL9BQnYwvvv05SCfNCv7tA=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=Pp7H7S1HN+9UbUJMWjk7ZVr6afSRvX/TDaR+0kfSlEcKwVK0l1aqu7vIXYD1KTBITo OLHvzR0TGiv9gYu83PqrjWF+8svNNTMgUW0EJ24SiyeYUuTVvlkoXqJRLZ0UGo8scdsZ YvAar0wrj6Wra20W9FBw3lMuYmTb8jN1PxCIlnUH7yVg2+KZe5RECvZVa0UcMMIdirvi 4ykSqQZ7I1HtH4HUWWPfy1DsD88eRIyhD1WqkrFgQM1cUxmw3ZS58j3C+62MTEUEBmdy +Z37QHemvHUsGHpyaB5o00eou2aqdHYXvr1GkwvHiTVo1CeFc8NSRnqhtekiJxLwVk04 varw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=lT367uBl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id x13-20020aa79a4d000000b006bd92721f4esi1480765pfj.293.2023.10.17.05.09.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:09:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=lT367uBl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 06016802A2AB; Tue, 17 Oct 2023 05:08:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343694AbjJQMGs (ORCPT + 99 others); Tue, 17 Oct 2023 08:06:48 -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 S234896AbjJQMGJ (ORCPT ); Tue, 17 Oct 2023 08:06:09 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19F0D10E2 for ; Tue, 17 Oct 2023 05:05:14 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2c514cbbe7eso39798621fa.1 for ; Tue, 17 Oct 2023 05:05:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544311; x=1698149111; 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=2gwFIIe2dfNDoGPAPdODaCL9BQnYwvvv05SCfNCv7tA=; b=lT367uBlb6sO5KXgrzhqkqk2lngX6LCcNuxCBeTvBRj7E1IT3xMYdlRNObF6YWUYlE LPiKXwOguC4oc9ASr4thH40jZwbRjqA7eoYqd44CsUHNu3rKzbhU+G8HuNA6M87khGq9 ab0e/QHHWcClc/qeVM9DZsHSKGFbQ/CvRLwFTsunnf6HspqlKfvRTvGIBFHcABj12oHS 4zc/7NhwO5wMAzjU4XM40UHTMzI3v4g4pEcXw0LlmTHkpImDGYxhwyynualDpkCHJXU8 pdEWHUsVrrkf8tQ3iMjijGLAeNl3aoAqnfhtQm77vV2+8E1/j1CHdSHrJWxTc8b4+5d2 AF5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544312; x=1698149112; 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=2gwFIIe2dfNDoGPAPdODaCL9BQnYwvvv05SCfNCv7tA=; b=dC/9nqnHd1C7+M8UElwwumg689TfPTmAqQo4hMQJVSCX0ytypTpZc5LJIeHyqjShoo 2j/sSKRriSuLP1mQlITQaf97TyG+dR23jqUj+Yc7EbduV4bBypdIQ5elF2dcM9clLwNQ 5LRPUcGIbLdiuJTC+8dFljb7xkEgKUnI8jhRfjBs8GUJLreHQHMVR98rafaUL1fnuBl1 +KrGWL0FuBAIidkbjSACfbMs8ii4ePJX954Zf7GGYDbRmRqlBUMzfg39Q19CVu/IfzYG npl0nuBrGpg/0J00g9G90kx08DJ7AagRiJfK2X3Y/S2bzCQCMmyO2bC/q6x2UtvBexzx 95Uw== X-Gm-Message-State: AOJu0YyyDzwpSNh91SW8HUlG/OmUy+9hnkdg1EemHMi8t/wx+5JwRPqQ 6Yr675FzNBHo/DmUoLajq6iNlQ== X-Received: by 2002:a2e:9c55:0:b0:2c5:d10:248f with SMTP id t21-20020a2e9c55000000b002c50d10248fmr1362032ljj.49.1697544311725; Tue, 17 Oct 2023 05:05:11 -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.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:11 -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 24/73] pinctrl: mediatek: moore: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:42 +0200 Message-Id: <20231017120431.68847-25-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 pete.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 (pete.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:08:49 -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-moore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-moore.c b/drivers/pinctrl/mediatek/pinctrl-moore.c index 889469c7ac26..dc41ffa31357 100644 --- a/drivers/pinctrl/mediatek/pinctrl-moore.c +++ b/drivers/pinctrl/mediatek/pinctrl-moore.c @@ -512,7 +512,7 @@ static void mtk_gpio_set(struct gpio_chip *chip, unsigned int gpio, int value) static int mtk_gpio_direction_input(struct gpio_chip *chip, unsigned int gpio) { - 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, @@ -520,7 +520,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