Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp767581rdg; Wed, 11 Oct 2023 05:11:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJxHgrZBQtaNm7u7VckTLjNeqZThuhQN/rRlNdIMHOYcySbR505rsdUpiCp9bLyiFwEOjV X-Received: by 2002:a05:6358:98a8:b0:140:f00a:ee2c with SMTP id q40-20020a05635898a800b00140f00aee2cmr26273675rwa.11.1697026280242; Wed, 11 Oct 2023 05:11:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026280; cv=none; d=google.com; s=arc-20160816; b=YCupPDo8dGvZrZgmKgIXi8lPO4iXlgUuVyF8rPbGHsOTsS97JrCoFVLdYucVMnNa8p ZPL9XjvsC5L94ARRv9A81cJoN0Rd2RRGqRiMvxQ+ojKSEWrZQLQnaKLZNXa+k/sNhkWi olAUqDg51dpFxN+2+u7LX/OsZ6QTm4mo7myPL7qtqigTjNqEnlaOaf9pmu0UtpqqwIl8 8aq46FQYIYfHKiil2endbuyaTB4QR+fsLJCFaP9o0oNBvS5A9d31llJaJ429CxqKuKeU n0SBMEkqJaUjL0theKKTNP+So5m0uz191yElBCcQc6WqiKfD0kqs4Qa79CvWZGNpP1NC Eo7g== 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=KIsFd55F0KDTeYFxC0VrlOBEBW9IPyMJKeLuCL/hlRSAsLqxSuJtoxRPHcecWkRxyR uvsRqJBA7WMz49kLHtjkKUMVSiSp9ffKD1JZpLDwo8isP6bP4OHdHyBW3OlVUvMBTMF7 O6yL/VxV7EdsSxW6W6mcZGUbPW6/pNRvp2uukfiyO5ASc1L327OH8bUFRDAit6VB4Clv RI0OHP0ip4B7QaklsKlRsZmbJWhaFQFVcJGpXrQoVo8zYX9pswNB+VNm1s3glxJr/KUd dCMab06V4mzr2qs6vQ26STOWVDsGsI8n2rkxr7sYvyn5yvAT/TZAbSu/J37w0AEIRzUO 8IEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="UPnXTD/7"; 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 h7-20020a636c07000000b00589878c0a65si12463753pgc.735.2023.10.11.05.11.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:11:20 -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="UPnXTD/7"; 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 5B7858108BEF; Wed, 11 Oct 2023 05:11:10 -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 S1346846AbjJKMKC (ORCPT + 99 others); Wed, 11 Oct 2023 08:10:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346262AbjJKMJX (ORCPT ); Wed, 11 Oct 2023 08:09:23 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EB3EC4 for ; Wed, 11 Oct 2023 05:09:19 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4054496bde3so62403535e9.1 for ; Wed, 11 Oct 2023 05:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026158; x=1697630958; 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=UPnXTD/7c9tOO31qKINhHLOWX5Prpy71smepplCKhsUzHNziM0U/kPl1BrvJFPUG/L A0wnAA80ZUQ6T0hYH8SuyAHh7UFhtJO7WG6gnUM8zezHvOsCvckOXFLwPm40EaCZAVg+ odv9dAAkBN5tauuBBXdHboLFhdLoglt12VpfCDF0ow01flW7irLbCTAdXG/7fseg5Q/p EWDC0pDryQBJRd4odXNqvk1BFzR3qGopPdlu3S5DKZGW6y39bFspXVs734g1dBp8kbLs dJm3nwPYKgZuMU/jZy9HAXw0QuAOkW9XiCiB6b9ooAKXrgbrIu3PHoQvlA2Fb7PHpfdh hxlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026158; x=1697630958; 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=WxC8PFxVCJoq3c+RGKqCWXiRp5a8fkvpz/e1EPVolFw7n2QAQQWkpQ1mHPnoQVZYwJ +xSLQlzUopBEUA9azJQeGUjOLX7CXEjjD7P+Ez5GYxC3jsNCFnvkgDk3uoX6uc/yZtPc RBm7nkj5ywJYfdhUoupCgC2phZSIZGX/cp6jkCAKDBbe0D6hnEBI/bD3vhEdaex0IglE G1xmN9tlB0ydLVMhKtSGftX3UhmNzqMWtXarqRNv1nPRQ+1hivp02aOprE7v7ZrSZMJ1 QZFyMSs0Z6Cq21iJxd2rzr8vFwCRss5Eu93YkKxjcuFiVJ4K8YQotkpVQV/4PAMhqxBv U0kg== X-Gm-Message-State: AOJu0Yz2U3rNbvXHXI3aE1rXONzUm6KwyhCPo4LW5hYXrqKjG9mP42cg Wkm8LcFgP59URGCtX4WKOZE3bDdwGlXHx8OG8m4= X-Received: by 2002:a7b:c451:0:b0:401:aa8f:7562 with SMTP id l17-20020a7bc451000000b00401aa8f7562mr19291200wmi.11.1697026158099; Wed, 11 Oct 2023 05:09:18 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:e551:3946:26fc:f94]) by smtp.gmail.com with ESMTPSA id w21-20020a05600c015500b0040652e8ca13sm19012253wmm.43.2023.10.11.05.09.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:17 -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 v2 12/62] gpio: vf610: use new pinctrl GPIO helpers Date: Wed, 11 Oct 2023 14:07:40 +0200 Message-Id: <20231011120830.49324-13-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231011120830.49324-1-brgl@bgdev.pl> References: <20231011120830.49324-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no 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]); Wed, 11 Oct 2023 05:11:10 -0700 (PDT) X-Spam-Level: ** 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