Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3107797rdg; Tue, 17 Oct 2023 05:06:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHggZh98Db1RDeqc9WuqmbKGK4d3yqo1VY848lhFE47cYro2vWgv/eM4gVpZM4qT7mp5Lm3 X-Received: by 2002:a17:90a:1910:b0:27c:f48e:e245 with SMTP id 16-20020a17090a191000b0027cf48ee245mr1752517pjg.24.1697544380121; Tue, 17 Oct 2023 05:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544380; cv=none; d=google.com; s=arc-20160816; b=yr3VVG4pbiCXYbQ1b0BXKm54E3o6mMWdL5dsSU3t6IN3ZE6wciDoWuVIkiZJZ5tFQa AnTSwocaAV0AemUUg7sSASYSkvfvYYM+MBwOWm4B5KbH5E8B57gQYSx4wEE43SxUCHUn 9LjY20wvuoFh1CHso0GQsCfiUS0z+pa4Zp39qhF5UtTT0ncxcUC3HOziwnI6O1bgfPS6 WWh7+G6jh9rsjQ+MooohujIUIZpyPjTv9XC/vCrsOWgVu71QhYWopG/HEJYZ6n5nw1Rs 97VTygVpWr8tMUOKdXV/y7iXT7MZkuTdClBVD9KTKoX9dO7dTdtyT6cYLlQltSEMDKSW CUUQ== 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=NRDXdsqovOpFqQlW6NMXq89oYY2ugyvGcK/dIwIm0sQ=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=FEzlmD1ZXpITF8tSScE6R9D/FdpmdeQ+osAxmSUij/RInh+4/zvQl5uiKkOf5tkuPS QvkUgeBUWARZxxr58OPjRsjN2eDUmGYYa1euk277fpWzGHw5VVlxjgb468rzkgsjvP+C vLsL6QUa0DmAvRHuOod8Fl7hrDsWDJcrK7KBdmgymNyQ4XC31Sa5J9aqKMH7trL6Naqf LHYfKCHWCFX+jCBdhLkYPSLmIm9pjYuehCd4ypoKF3+pDV+ybyuLb68z7jPWwc0PiJAg BOIbe6qTkoNznRBbf2n6wmGsrkm3kPGfa9E5sMvgJGv3o8pzvG8sXc6FKMYrLphPuL8E nJiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=AVXa3Tfz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id t20-20020a17090aba9400b002791b907f0csi8313857pjr.121.2023.10.17.05.06.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:06:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=AVXa3Tfz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 97D9180B8DE3; Tue, 17 Oct 2023 05:06:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234937AbjJQMFg (ORCPT + 99 others); Tue, 17 Oct 2023 08:05:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343545AbjJQMFT (ORCPT ); Tue, 17 Oct 2023 08:05:19 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75AE6107 for ; Tue, 17 Oct 2023 05:05:04 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2c503da4fd6so56571861fa.1 for ; Tue, 17 Oct 2023 05:05:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544301; x=1698149101; 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=NRDXdsqovOpFqQlW6NMXq89oYY2ugyvGcK/dIwIm0sQ=; b=AVXa3Tfzl3rav88xlFsyfnoFwSZsbQQt8eBC++dVnjBZZ9UfYBy6XsKBdKVY8FE4Ut XYYZGqnJTT9gJw7xyjkh5icGGhOYZJnSvRC0i4Rg4HyBMZD4vwxwXdSOM+TaLEMN6EDC JP1tRnuaxN56jpo2sP18sBmddk+ONOdYJQUcYjNbmm1U2g2BhZTDEwxGfWatCKL/OSEW FPZLr9hsEM0HnUVcOC/95k/cVxrBpFe5Poc0B6/0cN3LNn4faQoHuIKl00qCAkNuREvb RKORyYr4YBtRjNiII8d/DkgJ0hBInPqf5Gip9Rl1ZoDIrIRwzEWk/kL2EkCa15KqKOQH MhRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544301; x=1698149101; 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=NRDXdsqovOpFqQlW6NMXq89oYY2ugyvGcK/dIwIm0sQ=; b=LCcknYFKz06rs6xiZmfC7Ok8O5m8i9fd0pYKQwH8nAE3VuLkgE7zCe0IogIdyFpCOQ PxkxwiHi/97szV3d/KhiRp/V3Brz0Moh0Ab9cl3b+iyGh+QVQSOk/ekX/wCvs+rN7Wvd RtkFfxooPQPkuknSTN9eR4z2/Ikw+va8ul+Fy2J1hW1l0O/25tqgJGdrHnqyzbgQ8+Az x2+n8qggkkoiwdAnM5YZIy6MJrVzDCGaeEcm8m1BsuhKIU9JUPoixWyi7v66uR/SjnpS GflTKzyes5ytHdAFElFrujGwZX8M+4WDmPKdTvEH3wyf2gm8iQ/+t7R7KghDs6woZ3aG rWwg== X-Gm-Message-State: AOJu0YzN+7Zh8+ys5ebnfkKUB/3y7RSoeR0HdokcU/4hwYHYGXBBRavK Gcb2kECHnAywtMWVmOAG/zds9Q== X-Received: by 2002:a05:651c:54b:b0:2c5:106f:5416 with SMTP id q11-20020a05651c054b00b002c5106f5416mr1557572ljp.53.1697544301101; Tue, 17 Oct 2023 05:05:01 -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.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:00 -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 12/73] gpio: vf610: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:30 +0200 Message-Id: <20231017120431.68847-13-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 howler.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 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:06:04 -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 a89ae84a1fa0..2c22a31ffbdc 100644 --- a/drivers/gpio/gpio-vf610.c +++ b/drivers/gpio/gpio-vf610.c @@ -130,7 +130,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, @@ -148,7 +148,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