Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp767836rdg; Wed, 11 Oct 2023 05:11:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGcm1E7Xds2C/fU0W3W7tv8BxLcXcXorEjRa31I/SG6LIxjUdexZt0ABDIE2FUPG1xnJUnW X-Received: by 2002:a05:6a20:551e:b0:133:d17d:193a with SMTP id ko30-20020a056a20551e00b00133d17d193amr18057285pzb.59.1697026299108; Wed, 11 Oct 2023 05:11:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026299; cv=none; d=google.com; s=arc-20160816; b=Y5bJo2Q08NC10KUSj8s5F4g/mCITh60zTlY8hhtTyeTUUIE47MK8tcQYBR1HhP24gE xzWPXQ34yH7YS0Dbv0CEzMdM7EMV9DbNxO/CRxYLQyp7SZmssZBxINVyC8/oi2zl20Vw y8YA5xSW/DKOdIkpxbI958HpLet0Vpl7LIaNHK/NWAffGlkYomzfPPUv/Qbi5S4l5j2F bUfk23ZXdmhZB7BGAvfjI5rwRgA1pF1fG0AI8Yr8/MZOyZI0/dulWR/L6bFkfhOBOTQs SSnDKtGKoS5m3dlHPz+JYc1Mk5Cvul5Z/CqW52IzVSFsjfQ+XuIUhw4dPvl2TyNoIvHs wOtg== 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=Rjj2L8rLah6r0INEUdpiOGWMpBQyEZBDFUolDbEZ0p0=; fh=UjvQHEwLgAGMB9xgOGydfc4fhKvL5kzD8jpu/NPPZl0=; b=JgUjIZFAeChcyVo2a/JmJ5p4Dbf8jeRIMYreBHiGLYVYQKDbhPYnjyNb929PZZF/z1 Ts0sJ2VibJCqjMfAPwlY3ttncNNX9XHHE88g5/t4lgPbnvW/Rq1m7jY+KcwJZ8iMSYbq WIn0dn6uBYIUU9YVcMAYauWXf8ud63rHWTSP6mGGNC6tv1fQYURhg/sprYVd6IM1fEqD goA6z6gmrTWPxvuSBzNfofvCp5tK4GRl1c1Odj3zgjGhwYC+a90LxkiiwcDbyvg617q9 borggcvnsJVlZKJwklipSC18OmErFKy8uwl1LS0EgQt1l/IxawfY8c1UzqAcU90xUfK8 Lsfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=IfFJ4QcC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id l10-20020a63570a000000b0056da0ae25a2si13870281pgb.32.2023.10.11.05.11.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:11:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=IfFJ4QcC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 7D8D28069436; Wed, 11 Oct 2023 05:10:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346841AbjJKMJ6 (ORCPT + 99 others); Wed, 11 Oct 2023 08:09:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346722AbjJKMJV (ORCPT ); Wed, 11 Oct 2023 08:09:21 -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 33BE3E3 for ; Wed, 11 Oct 2023 05:09:18 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40566f89f6eso68955165e9.3 for ; Wed, 11 Oct 2023 05:09:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026157; x=1697630957; 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=Rjj2L8rLah6r0INEUdpiOGWMpBQyEZBDFUolDbEZ0p0=; b=IfFJ4QcCycmvpK6hYeK4jU5y/G4/whwCWX0MOMywer2z+WOd6L1VBIuDhqgQjx5yDd 5mflkF8cs1ql1ovCAbOwTs4cb/SWEB2+hFM2ceS4c6pi+8MWdi14WRAl8F1i39SNXrHe xDBYQ8Qu8EjWg4FOfjNp5oVGAwyZRm6u2JDgUqQ6Ku9WVob7DHyBIhVVeev1/pHaKY+7 BF4RLQGv3wvE4dVYue2qqpN62mxmGMYP06L4Z1RBmoPkixTj839Ny+QKmCICnnaLxz81 HKVU9iS6O1RO1o/ePvkPWwctS1aF951VRmAjs6+cEYPiRbw7V49lUp09Pb4u8Ha7ij4k UUIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026157; x=1697630957; 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=Rjj2L8rLah6r0INEUdpiOGWMpBQyEZBDFUolDbEZ0p0=; b=W36FZwuEWr+c9bnI04QdLIoNu8+fImZNhwevNtFsRwbTymnamp6epI/xdG1qjFPzNU J/S/P5yvdPeFwK5S9CFI41kUSMfOGa3hqNFf3le49U750qQfJLWMsC9empfYWzWjV4e8 /AelTLpch9AJQlVZQ10cmprDLRcFwkAKzLEGogNdKjy5CpNqApHAzYb4clUJWiRUGCkG 9Z6xrCZvZYSAJPk4mGkdS6mGnlFzH4BjDaBFXGf5k544j801lhSG4m9BYC+pgRUx5auq JqcZEtE9t1lInMuoB+++VNCOxllMgDuswKq9RCIUZOKCsgANI50jygGwck8njbBAL039 owyg== X-Gm-Message-State: AOJu0YxqChMX6PEcTfyKa/8xFUS6BgK0bVVdJHNfgHaZX+/rY6ntbVKg r28XVxoc6KflM1N5Wrmn9hW9Dg== X-Received: by 2002:a1c:6a18:0:b0:405:4a78:a892 with SMTP id f24-20020a1c6a18000000b004054a78a892mr17742588wmc.9.1697026157253; Wed, 11 Oct 2023 05:09:17 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:16 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski , Heiko Stuebner Subject: [PATCH v2 11/62] gpio: rockchip: use new pinctrl GPIO helpers Date: Wed, 11 Oct 2023 14:07:39 +0200 Message-Id: <20231011120830.49324-12-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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:10:24 -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 Acked-by: Heiko Stuebner --- drivers/gpio/gpio-rockchip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-rockchip.c b/drivers/gpio/gpio-rockchip.c index 23040a8cea34..3576793f0bd9 100644 --- a/drivers/gpio/gpio-rockchip.c +++ b/drivers/gpio/gpio-rockchip.c @@ -159,9 +159,9 @@ static int rockchip_gpio_set_direction(struct gpio_chip *chip, if (input) - pinctrl_gpio_direction_input(bank->pin_base + offset); + pinctrl_gpio_direction_input_new(chip, offset); else - pinctrl_gpio_direction_output(bank->pin_base + offset); + pinctrl_gpio_direction_output_new(chip, offset); raw_spin_lock_irqsave(&bank->slock, flags); rockchip_gpio_writel_bit(bank, offset, data, bank->gpio_regs->port_ddr); -- 2.39.2