Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2012879rdb; Tue, 3 Oct 2023 07:52:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHjI48OHGpg1xQkUMxd+sdQEstalwMi7GQ6ZtewOyZdAjukhOvG7vC2V+LFbyFUZDl30euA X-Received: by 2002:a05:6a20:7d8c:b0:15d:4cf1:212e with SMTP id v12-20020a056a207d8c00b0015d4cf1212emr4856488pzj.4.1696344769491; Tue, 03 Oct 2023 07:52:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696344769; cv=none; d=google.com; s=arc-20160816; b=e3kic27gH6cUkdBY/ZaOPkS+QeYYQQ7jHC6rsJZKEHAuoPVbMsCKjfTmnJTEhlkWnI iDbyD608+JvoqlUpbarH6JB9kuyQaE1DuXd1prnWCznjexEgqgDC9DZeAMyODWl3bFy6 emTZuGaYuvXYoejuzLoA3Q1NfSer9K5ciJ39yFtVlDoW35CrDYp6UhQ/ySpNwSm6CVK7 rMThLYUOnII1pX60y03XGC3NEbxUQ8ntkDA/sEhK/4BnRo5mAqov3rnd+GGIEzOLfLde 7glDHso8OGXBwvS46kpLC5A3H3jPQPJ0lnwkDfiPXm5LHy3n54EVP11grpbJpeAxKrmK fnSg== 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=f3PAik/MdMnmd6nJXEVGIJx0ZjjbAy5Xj5U2rnqb3Ps=; fh=sFZAJ5ezbypTez9WcxrfVuMim2Eh6JACjzNsyeVATp8=; b=Wb3VNXLZOVdoYFmFJLEjz4r72CBBiTY1OuW+ur3mtXCv3m57DDlfn3jh3GCqpJ4hER 5SfFyW0nNoIYlDUIOTSli3BLni32sp9WY5fziwwA3lrEQn11NqFCD/jNHS4gL/cBk0Yl Cjm1cgdMbQ/a33BNOBiEAemBVGKY7YkGDKOTrh+cgsL2EnCx3dp1tj/nluydWUUK8GeC rUMVS8j4GyDAZ0DvvKt2THgWE98ZJal28+6xHMKXHpmsSkuiAvAVFCXfeNbgIx5WU4+I NufRnMu+78afL1lxpO6U7S+4GPI6Cj8xeuuJ0Fv8JL/z5iR9OQDvAGXCV6t4+Ju6Ujaj S4sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=JNb9y+4U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bs191-20020a6328c8000000b00585463c36fbsi1498047pgb.44.2023.10.03.07.52.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:52:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=JNb9y+4U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 B1E2E81552DF; Tue, 3 Oct 2023 07:52:39 -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 S240310AbjJCOwO (ORCPT + 99 others); Tue, 3 Oct 2023 10:52:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240194AbjJCOvi (ORCPT ); Tue, 3 Oct 2023 10:51:38 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A08DDD for ; Tue, 3 Oct 2023 07:51:33 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4065f29e933so10252625e9.1 for ; Tue, 03 Oct 2023 07:51:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1696344692; x=1696949492; 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=f3PAik/MdMnmd6nJXEVGIJx0ZjjbAy5Xj5U2rnqb3Ps=; b=JNb9y+4Ud+Jnj2+QOSYSdULPNKXQs/YgHtozr9VkTXRXX42Fch1p+5K8umy7vtcnWS 0Kqwx1hFIqKXcW4ZwbcODQq8fsiPy1u2l/EY3beSC0zS2WU71hncPTgi+vZ+kBXHtw0l YXCYBBeyMfnnLsv68J9xiDrNCMryk6ARMZv2jsMt/o8hWhNAO0JqPKaNNLWrTlQI+Shj /5+d0KGqbWZhzZcH12PmEYm2Y160u4oOqaCjFONfEN62sZpr+gCrvKTDsjaE2qlxG94u cwvvhyO/4uE0SwoOvZ745JyQVHd/CxqLznKKPB8r/o9I4WUtXjIMpHZ5AtBaTdg1sXb5 mIxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696344692; x=1696949492; 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=f3PAik/MdMnmd6nJXEVGIJx0ZjjbAy5Xj5U2rnqb3Ps=; b=SEBCGKI2fZ4qd1Ea991X1vrCE1JevmBwIiJZurKN/xJWWHrRdiHlnTcoEtroh+LPQV MjFsCGUWaxWgdjK7gNcK+EgmWnd1QORjBHhImD9A04hTgJpT9sXdr90vm7GBPFu41FDF hh7qSDiM3gVNihQ3e+c5XBF5MXUSGO1Zjc2CqUcayJ1JevtVVEq+KrOIC64q2KAYy4M4 AC924lYkvAplo0RpTZZxxZBEuNnQnNZxr1un+ByL4qVeVkWdX4SsZctsgrFuujh4y0nc fyeG8jL779DbJP/2HlNQxU8AKAJrNmogBlgEKy+wAcfs8J3ePIbD5Cshlv5tyJIfL8cb hrAg== X-Gm-Message-State: AOJu0Ywbp+9zluFOkKF/msTHMMp2Pks/M0rtKxwi039zsr0T2mH5aQuT PX7BKUoRBDhbHl/qpoKdCR/EwQ== X-Received: by 2002:a1c:7c0b:0:b0:3fe:2b8c:9f0b with SMTP id x11-20020a1c7c0b000000b003fe2b8c9f0bmr11782685wmc.23.1696344692136; Tue, 03 Oct 2023 07:51:32 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:1f2d:3479:a5de:fa35]) by smtp.gmail.com with ESMTPSA id c15-20020a05600c0acf00b003fe29f6b61bsm1462773wmr.46.2023.10.03.07.51.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:51:31 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 12/36] gpio: vf610: use new pinctrl GPIO helpers Date: Tue, 3 Oct 2023 16:50:50 +0200 Message-Id: <20231003145114.21637-13-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231003145114.21637-1-brgl@bgdev.pl> References: <20231003145114.21637-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, 03 Oct 2023 07:52:39 -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/gpio/gpio-vf610.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c index dbc7ba0ee72c..32142b9564f9 100644 --- a/drivers/gpio/gpio-vf610.c +++ b/drivers/gpio/gpio-vf610.c @@ -116,7 +116,7 @@ static int vf610_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) vf610_gpio_writel(val, port->gpio_base + GPIO_PDDR); } - return pinctrl_gpio_direction_input(chip->base + gpio); + return pinctrl_gpio_direction_input_new(chip, gpio); } static int vf610_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, @@ -134,7 +134,7 @@ static int vf610_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, vf610_gpio_set(chip, gpio, value); - return pinctrl_gpio_direction_output(chip->base + gpio); + return pinctrl_gpio_direction_output_new(chip, gpio); } static void vf610_gpio_irq_handler(struct irq_desc *desc) -- 2.39.2