Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3107511rdg; Tue, 17 Oct 2023 05:06:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGiZ6vVu/iBGtxQaWR86GSVk3YUZ1JhuynAgC97SyZeKYO2KGHCnGatY+xC3Ko/D/etUtPC X-Received: by 2002:a17:903:244b:b0:1ca:495c:77d with SMTP id l11-20020a170903244b00b001ca495c077dmr2249693pls.18.1697544360207; Tue, 17 Oct 2023 05:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544360; cv=none; d=google.com; s=arc-20160816; b=AuqdpdZ8CDp/y/WFuQeGRbnRsweOrH8mg2BKsv+gGMk5ID4V6ACYnkUXIu/YzC5DUB /SULInr55FgjlEvlId4C/yw1/vnCI95SHwD2kyXJoeZSxiKEcVCUIgRlymGZW7Xj/CqH CcByv/Lbag8P9B57uFe0DxihbaTVFd3HBJ0y3K41kONBNy019ZvuZgnCTZ+0ut2xQI5r d9hybiJXJem1800h28RpziwmAzA4xfZfaxKgR2Z6cxtpTGD2A+iEai6RuiY7uas985fN gSvW9GHx1zjF1NtIK4bqsD2bz2J9sPODo2OqAX9KFPrQnolDGrcCwaDRSDzz4H1/MEea 4PsA== 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=LBy1cmH2su+PkztEx2tRUBQcumBxNMkgwvy6xV7AHtwrhjYqK3l2+vN6ruLTK6i9s1 kQGzvAk2thPnSFRbFc9SX4/gxzhJNcDjF8FGCXCJE1uhGu8692q9m558Nsgrpwo2BKqg JpLj1RX40P4xJXWRwjC/ZsdiAOEOB8MDpemTvjPuD16T+gNgkb87iTDVUYy+AoddRM56 yGXUJvBx1JbNl/Vn1ZJVCz3cotGfWMfUGbrjsE1nKdTgCSclHewIbAUuigV7CECb7jIV jH+23ENOiQFNimhSbn2Xh8oafbAcdI3mFExPxeBgQtLVHpo8Pzh6+NcnBX4feSoThI6m KxEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="z/CyUMd1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id v4-20020a1709029a0400b001ca85fddf9esi1465609plp.483.2023.10.17.05.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:06:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="z/CyUMd1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id AC3DA801C7C2; Tue, 17 Oct 2023 05:05:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234991AbjJQMFb (ORCPT + 99 others); Tue, 17 Oct 2023 08:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343542AbjJQMFR (ORCPT ); Tue, 17 Oct 2023 08:05:17 -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 D792810E for ; Tue, 17 Oct 2023 05:05:02 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2c504a5e1deso62209581fa.2 for ; Tue, 17 Oct 2023 05:05:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544300; x=1698149100; 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=z/CyUMd1BPEubs6df4EZ7TvD76p7XdwoP7J/wDmr0XDNILiLu32z00X2wIvEW5SdsL 6ncY78DkTmq56BdtHwrHgrhKt+woMqevkAqMQsakShO/ok44/4n5G8lo+nnIsK1m3tpN 6nfyrKg4mSh8vUYrlGHyFoTNBNe2ORUpl9jDDGS7SHJjZCyBIoee3kfwFD00BbWGnftY o5qmVTSd4aVcH42pY2XGzXrlkNjxaLO9WZxz8dBaXLQ+/QdMBgONWFLSOl2fP10B117O 64cMuq5ykyjZRv0SpTeICMWZkAUGMRQaEiRf1FtYqhMXpztz8D/I7opkx4In0d4UqDYo C1mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544300; x=1698149100; 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=L9b1CCKwgKThWzvPGW/MtTk0T46GaOCO82wErg+yrnaRm4eeggGROzITNNnM/ezl+M J9ClfZv4zfL7uMxfovp8GhMS324WlCzWKR4xuSylXIKIQKvE3140h1hqk97hegtaeR9B B6KTITJHziKi7wa7kXPDe1El1/C+TdK17k1W1fwV4KPZjPhoKGJojDHKGK2X17TbHOn8 YFR1vEHjXIJ6QDgmEf+YhAcJCsW9umQaw98cGJYGVqQThvsZ1kCEgaIhUH7g93doeo8l 0HF4A4tz4Wi/4l8OX2IFaHVUcCdcdBagiZw/uVNzUAMSS/RgzKcVqI6H+CZSK1y1r2IJ zxxg== X-Gm-Message-State: AOJu0YzehyqTmAu2mJuFB2ddP5kC5ge3iGb7IFee/60ZxysnuThyMql4 SBTs2D+ByWma6A1FwdVX9UOIrg== X-Received: by 2002:a2e:9613:0:b0:2bf:7905:12c3 with SMTP id v19-20020a2e9613000000b002bf790512c3mr1427429ljh.40.1697544300349; Tue, 17 Oct 2023 05:05:00 -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.04.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:04:59 -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 v3 11/73] gpio: rockchip: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:29 +0200 Message-Id: <20231017120431.68847-12-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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:05:36 -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 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