Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2013036rdb; Tue, 3 Oct 2023 07:53:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJ0mqYmtU0ipxgN4v9RBA8KbT80zGFAAfOKBmTSJN+xZxGoR4DdUuzEils6NoQttWsoBZ2 X-Received: by 2002:a05:6e02:1b05:b0:352:a35c:f22d with SMTP id i5-20020a056e021b0500b00352a35cf22dmr693300ilv.30.1696344788416; Tue, 03 Oct 2023 07:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696344788; cv=none; d=google.com; s=arc-20160816; b=dJqC6o9luAR138ffw6Fk9VkKDd1xlNoZ1x58OnHHf8zb6gGbBA0hGvIiP5GLsRMg4k 9IWJvWrYBEkeKiCI3igKEyhOqhDjVy4SsH0JF8sxAGCiBTNWJOCXM7L9HBccqScI9+dJ vL1ooG6q/N3PyJyK4VRqLWEb5RoiNhMY3ZfbITRyKuEz3vU4UCL5S4hHfDFmOv/Zaqxx sv1sIJXWkdO4j3wBByPxtxc7msMK5W4VDUIiwkXegF1QVmgOSgJXyO/z1G0h+adHze+Y j9h8NNgTy7olaCw5zyCfOSKIXSotphh2oekKwi41PlEC5UO/B1UwLczJGbnMZfluBvXZ 7v5w== 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=I6IAeQHFQYiMMPjtEJrwJ7s6g670YyT1zUnutl/bM+o=; b=BOJq1NuovsKEbK1vzpRvdXA7vtIHsHA+11mD9XdEPhZbAo6Zd6lNpsKVsFxzI1I8WN efyq3qwqpSoGvvXd6MSfn5vWNDK8vwxHu0HvpZxNuDzDRayjjw7Snts9AtUrgvs2yEdr xTdf3rxlanrBnykDsMtiUU1kseoTDuLbcchn92+XzZUCH+bWq7KqlE6AHj6+1XnzcgzI maPZ8cHDmiIwj1qROdQI7m6LqayXJWoyu3ss5peDmUq9SG7LcKDrTSV9gzgpJ73NlATH /+LVQxMlwfhhdB52cvKsXhWAqos1YmJcn6WhNcrAb1Cwc8Zdh1QuuLgKRQ1X6VwLmiad O3AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=ehH9dnNk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id x5-20020a654145000000b0056b4065299esi1543445pgp.621.2023.10.03.07.53.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:53:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=ehH9dnNk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 89A22815CD8A; Tue, 3 Oct 2023 07:52:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240427AbjJCOwe (ORCPT + 99 others); Tue, 3 Oct 2023 10:52:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240323AbjJCOwG (ORCPT ); Tue, 3 Oct 2023 10:52:06 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF8191B3 for ; Tue, 3 Oct 2023 07:51:43 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-405497850dbso10121025e9.0 for ; Tue, 03 Oct 2023 07:51:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1696344701; x=1696949501; 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=ehH9dnNkTsAFzKXl9wp5BTCtWFJ8Ib7oce23tSALCCObFjAhhAzfJjio2ZlkBzkGT6 R6LfHkQHkCal2t2XHDtbND7AegPdgdNKV+nn7MWVQEPhLjEjDheULuzeDbyfIGLxNN93 vkmvHah1FT8Qh9TllnIjftcGfWvu0Hu59UJON+MjUvsjKIus7qyL67bv1JqvPC7gGMA1 +Q3RAQ7PyZE41gs9pief71F7i/ayKnywz+1k2w1CX1gIqWwBWo/iGBO70AUnbZFoqlUW ebmw8MJUuiLr051H+gD4Z7G5M8aKBoCIhn8vvoBHXeK53Cqyof/NVLSshS7cCVL3Wbd6 RzeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696344701; x=1696949501; 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=Hy6hb8yxkn5JWxEHY7Oqq080mMPbSp+b+OXpoknNSfPyfK7BR/LA8zWY6qkXRzvfnI GRdSoWS/1eoL9Cgqj//dZogPh0+pEicSiPQd7RAlBDi2dElr6J64L/vSfgPuqVVlu94T prGKvdz4vlzvKTuWxx6iaCM8SJ/Kw4J1ktZhftx1YoyJPKXzZRBG7wuz1ndMD35wkbyC v81bV1ZPB91GKx8tBwnSetoRaSl29PKXnWrc/kj+xycii6ms7J2fRCgTf1CXfD6/g0rL HEU+/x8uGw+WGr7VTehNY2HTDaDy9MvbcRDSNGPu46yUyl+SqXxKYtKCPNW8q5acbl7T u4DQ== X-Gm-Message-State: AOJu0YwtHpybDr3DJ4oEK8D1Bd8Jh8MPUvWdhqmxAkSQ0/onO0fhF/g2 7EleAZi4Yoh0ZNT2MwLWZbsa1A== X-Received: by 2002:a05:600c:2317:b0:405:3a3d:6f41 with SMTP id 23-20020a05600c231700b004053a3d6f41mr12365579wmo.22.1696344701465; Tue, 03 Oct 2023 07:51:41 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:1f2d:3479:a5de:fa35]) by smtp.gmail.com with ESMTPSA id c15-20020a05600c0acf00b003fe29f6b61bsm1462773wmr.46.2023.10.03.07.51.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:51:41 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Chen-Yu Tsai Subject: [PATCH 23/36] pinctrl: axp209: use new pinctrl GPIO helpers Date: Tue, 3 Oct 2023 16:51:01 +0200 Message-Id: <20231003145114.21637-24-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231003145114.21637-1-brgl@bgdev.pl> References: <20231003145114.21637-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 03 Oct 2023 07:52:57 -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