Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3108690rdg; Tue, 17 Oct 2023 05:07:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGDpfstR2KD4Xt3onAutmK7NiDimlcQs5lN22gVyXRduymQegD25FAXguylGnILEVwhVrNS X-Received: by 2002:a17:903:41ce:b0:1b0:f8:9b2d with SMTP id u14-20020a17090341ce00b001b000f89b2dmr2914039ple.29.1697544455408; Tue, 17 Oct 2023 05:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544455; cv=none; d=google.com; s=arc-20160816; b=K3fnGSLNpnqqI2SyqsWrOnthIB43QOhmKcAw3rV78p945DhyKwdeJ3bEO9je+KOOz/ P4AnHG5jx7ylNSphNyb4vxYNdmASFn1OtpzVYFsQSKcCFsC+IV3s4YJwPdhmFGkm2V5/ LdO+0VXpqwKU4frfjPStxiE/N1A7incevtMhWYjBsRBYSNsdTjKGGsCaXJvtdjpLDBHE QOEByXYawF69HvBP1yuEwkUwaMDZ/128kX7sT0CTzb8xEdE9MCskxOGbRnpJsM9zapat eyPOoUqGn7/6QZTbh6Ge10/+V0bAtdYS+0tXe6bmcvQu/pYg0VFZwefY81KXjIbINl2o oPWQ== 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=L71FhZFxQS/v+Kb2FZmLTi+Zct1vRjkWo7sxYZsb/pk=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=un8ncE1GUFyTmebnbIp+nPneDCT9WZmDHytffLU309gunjFzKo68Pkf5/ClD6bamha I8YCZ6COjOXPSNCoqUPw1ByBRAvS4f+7a41IrRkWWaeYe1f87xivk1LIZacJQBWuHvAn IYQzKspCETas6LSBJduAhT0/jhZD4pYkRrRd0VKtdoitNe5QmGVZYUYJIAWq2ZUicJRm yBpVNaSrub1KEk4JTmKhrO/r4Ua2p41LPmEnX9uV07mm00TIZCNqXvCQYGdZoyH36gjB 317jO1O5uLBBAL8VXCV8tgjka1UNVCRft2fUEOqyqbbC3x+ZWfkGFuX0s8FhZyCUs75O ZFEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=OzWcgGNq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id h5-20020a170902f54500b001b8b437b01esi1673709plf.350.2023.10.17.05.07.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:07:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=OzWcgGNq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id EC6AA801E1FC; Tue, 17 Oct 2023 05:07:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343775AbjJQMHB (ORCPT + 99 others); Tue, 17 Oct 2023 08:07:01 -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 S235030AbjJQMGZ (ORCPT ); Tue, 17 Oct 2023 08:06:25 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 157AB102 for ; Tue, 17 Oct 2023 05:05:17 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4064867903cso62407485e9.2 for ; Tue, 17 Oct 2023 05:05:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544314; x=1698149114; 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=L71FhZFxQS/v+Kb2FZmLTi+Zct1vRjkWo7sxYZsb/pk=; b=OzWcgGNq9Oxgo6yJZAWnlQ6vMj5oNCtBRrN96cSd/P5R3mc6Uy/m4+JnbAJTpU4bJS hOOraKK+gd2alG7JczrPlLMsYt1GwFVTXXxCbVzLk989utgfI7vf/2t4QwiehxRyIvHf MLkpZrz0rAFCHaJ1r1MkQFb6oOMSk0uerIlF7bfJJYpeyAPRKOEAJs7SVPM+m7wmzvTw vSYlO6sKjfCf+gAZyTajgnEt7ysSEzp84/EJVpwpo3Nx88e5dnLWu5LPkHXcVPLyoDqX /0lbRh2ceStmfHvkOdtccGwmP6WfuWqXTMTUaOA24WYTNgRmjoRNS3QuNgB2e/205O7I zTzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544314; x=1698149114; 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=L71FhZFxQS/v+Kb2FZmLTi+Zct1vRjkWo7sxYZsb/pk=; b=ErvY6xTeeUOp+AiCrFDh+WdxhxyfIeKq/hK319rdqPO8NGiRlYhUGjsjdmT6UfXZ7Y QHgD3NSdv65X2g4KmQ89RWf2U0nPMlR5V6+IC2XA9h7oSzYzVbMo4rt+0p2Wi5U9fNvN oGPtZBzy6FYf1N/0ZJb1clPlI+ChzZVS+9tEu9QkkSrfpb3p2aoeOaeDLk02rXhQ6hMS K7LKeMArYm1EIpC+MvI6LMDhVfZKdo1vkoWWyrOp9V+J2xNbumLZIBd1RUDUaHzNaDGP MBghHuEiCDPywq1ZvrZGyTeVM5pgaWfV2Jn5rbJKRTQD834pk0/CXeO3YLK06ML+25gb bU2g== X-Gm-Message-State: AOJu0Yzr3I0s8MqrI/wWyJKejv9h0dytAb+0i10cy1Z34mJ9nHn8RHHy G6yJRXLRRHk+BiYF+a6Uh60Fww== X-Received: by 2002:a05:600c:450b:b0:405:359e:ee43 with SMTP id t11-20020a05600c450b00b00405359eee43mr1665215wmo.1.1697544313995; Tue, 17 Oct 2023 05:05:13 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:13 -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 27/73] pinctrl: axp209: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:45 +0200 Message-Id: <20231017120431.68847-28-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 fry.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 (fry.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:07:19 -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/pinctrl/pinctrl-axp209.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-axp209.c b/drivers/pinctrl/pinctrl-axp209.c index 9f5b3ab8e184..d7f081f1d1f6 100644 --- a/drivers/pinctrl/pinctrl-axp209.c +++ b/drivers/pinctrl/pinctrl-axp209.c @@ -126,7 +126,7 @@ static int axp20x_gpio_get_reg(unsigned int offset) static int axp20x_gpio_input(struct gpio_chip *chip, unsigned int offset) { - return pinctrl_gpio_direction_input(chip->base + offset); + return pinctrl_gpio_direction_input_new(chip, offset); } static int axp20x_gpio_get(struct gpio_chip *chip, unsigned int offset) -- 2.39.2