Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp768120rdg; Wed, 11 Oct 2023 05:12:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEFlNkdsCqq/E8taog1c3cWKayvA9clO1MXb70V61avEQMQKqiCm1liIkCcDztdNR/A/MIQ X-Received: by 2002:a05:6870:a550:b0:1d6:ef37:9416 with SMTP id p16-20020a056870a55000b001d6ef379416mr27352719oal.22.1697026324099; Wed, 11 Oct 2023 05:12:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026324; cv=none; d=google.com; s=arc-20160816; b=Eb9EbZ6eMxgeelSZcbiP/El6jltNuWi/KUaORzTLOZPcyeiIZ5t+63Yu1RMLxmVSDq gY2jlkRAcPPKnIFjd2S1FeOiuMLPShKXuE3TNTLVCc8aJ3Ng/lTjkWqUrJvb04p6+g+S REFCWhVLcTlQY+H16ClXLlaT8Ur+GElb9tLxCUfzOSGxNWsV1SfvXodKh5hXLjCRIJk1 Uv+WUbvKagLJa3VTY2qqK5a29QT6kO7B/3q2iTSaVSDp7Fc45qJlIvCZUqE6sbghSbs/ ntDCgwWGw+Gl6eh21wDp30TRTtvJnVN1WAzw18wRAWu/3zqHqJOWjCZhH+X+wHDCvVYl GAqw== 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=xYO8Qup8TOZ7S9athmNSIBRAeEl459ifgFxdQmxgvPY35p1pj/HO6thdhmuSAqDWwp sJSdMLQjm99sIJz08rWv377iZcFdKoEDh+7xlrHf0rc21ezEjXcD0xOCeT+eBh2WtGsb jJTW4g48tqsMAY38jSKjhni6hq7FTmEi8O161gvxuUCVAEIaF3Qr6v5d7Wg+wMBIQJP7 NrBdT8VWkNfSwsgcjqu31KzPbEWdJqiOQ3xAph5XKHt1IjSMYXUrERhWzW8ecItv1tw+ XwhZu6G6N/XT69VLHbe7CGlxGuHXvHrs8bslYXdPxlnNd8SduZiNHBvrlyNGT5zAvYCH qESA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=X4gH66nc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id l195-20020a633ecc000000b0057e2432b366si14452481pga.378.2023.10.11.05.12.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:12:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=X4gH66nc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 4DA0D8135606; Wed, 11 Oct 2023 05:11:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346722AbjJKMLU (ORCPT + 99 others); Wed, 11 Oct 2023 08:11:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346877AbjJKMKN (ORCPT ); Wed, 11 Oct 2023 08:10:13 -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 EA4171B4 for ; Wed, 11 Oct 2023 05:09:40 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-405361bb9f7so63086395e9.2 for ; Wed, 11 Oct 2023 05:09:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026168; x=1697630968; 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=X4gH66ncnDIZFLD59Zp1OIvwj59nH6kSsjV/ZLsXvg43mSYPBPeRdJkddtIP22Ljuy pTUiUEDacl51zOjIypMXRnZ7cbmsFZIGg6Ff/ScAqZgkCgMBtpr2MXbaocPG+up6DGp3 mw2XOS6w7Fe5wzXKWqyLUAjH337RutZUO+bZ2pWz34po459n5RcePF7Q+pTj+av6XRL5 FISaX5eunpQVnHHpyQI0uf+A71vE41lR3RYomRzQaHdo921+Gf7e/HoVZRcBsl2+oUnG PJlFPfWcGUEd2bpAQz8O+jTutwOyxcVmquKG22gBe/TeJD+Bcfgbs4A8bbZcwI4XvF0s /Dpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026168; x=1697630968; 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=oIKcZXcYzvQpwRJcvu0rCtygfVxFfg9nVZkcGg3V170cYsuYN6RFePIuU7a+dN6YXi iQhk07gccbn29bP26xWbvpG9qgow102IeBDSOXdgNQ1p3YysrlEVpWm5d/DalG1mpZX5 9+Fzi2lmh+KXizItfyBIq6iWB4X6Zb6AN+VrTrIp0DR9//JjF/nWT6qzZvw3nzEUE2kk jTqL1/Gcbdq3pZ+Kqs7xm0pBf8O+n7GG4mcyD86hAp3W3xNxtj8DWfIHF+SIBP0VltOI n+EBVwTr65rLZoU5d6SoEegDFzc3uH0U0+v4S7yKAHabOg0WJ9tujCIk1mjoAYnF08wh Iiwg== X-Gm-Message-State: AOJu0YzA92S56+xeXb1AD11gVGN3gEws1Kl21a0jH0uNG7S39L/ePTGv 2MPj2foDlMZ6Mp055CjgVQ2lUCrpaJkDneuG2Dk= X-Received: by 2002:a05:600c:600a:b0:406:eef6:3540 with SMTP id az10-20020a05600c600a00b00406eef63540mr14079374wmb.0.1697026168175; Wed, 11 Oct 2023 05:09:28 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:27 -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 23/62] pinctrl: axp209: use new pinctrl GPIO helpers Date: Wed, 11 Oct 2023 14:07:51 +0200 Message-Id: <20231011120830.49324-24-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 agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:11:56 -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/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