Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2012873rdb; Tue, 3 Oct 2023 07:52:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF1MCBD8Halkbo6SQmrTBZNO4YciDJjc35iORGYc7PKNHRo5cTzdk01/NBvI2fRV9SPsDjY X-Received: by 2002:aca:2315:0:b0:3af:658f:14f9 with SMTP id e21-20020aca2315000000b003af658f14f9mr14878901oie.41.1696344769279; Tue, 03 Oct 2023 07:52:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696344769; cv=none; d=google.com; s=arc-20160816; b=j+ad8izaDM/F+Cu1combssq8EtQEiE4nHmAFo0dmhUfuBg4gHlBWXGhFesLcEwyJ7f sycbM5+BKXwVNIi2TE4/5IsoN+EHfkYip80Z/p3F8raRGVTz95+XGT79k8QPWaf+3qTI 42DponGkCssMckMzEpjVmXxUGR4FZSASJl+aymWL6JVJw7DnB5vWMNrVANIKyX/852w9 cJhfhYO/zjGgcbto1eaoZTeMPMuSpl980ynRd9Duf9QgXZnZGxs5j13oVLIWblp24hcS FiMMSHcFCUa/ICXC0/pgu1Kal9GtNJ4gWXDjQzrsqmwRa6YLRKSYbvm0F19G4cp0Rmrb oHvw== 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=Rt4PWI36LT1R2nI/NQBkxbO8D5dykJYeFhT6i3lm7MU=; fh=sFZAJ5ezbypTez9WcxrfVuMim2Eh6JACjzNsyeVATp8=; b=0o1n8wfS5BydxFhCMiOiAuAkTy2lJjWflw5SYVhnnW6qfw/v8cROyPTC5dfLzf/nfT LlH6u3B3l1bcY4nBJgAPJG/HbJ0yvRx4JKO1dZLgDkBijiW1w98KCP+UQPFP0IG7mK8k TTPSSlX++IPVT039U4ytFqQ7b7xhmErR56nKej58vg1TC4B97ghv/46UPGxEW1CxQ0PZ q06ha8VDzqLpFd1nRv3ILJfYaSIXAb72b3AX8NBflDpR63iMf8JWMnwGriHzQjSrBaBn Q7sqfaK7MDa1s7tLZVMlDADJsDcgP2AG3q9TocMe9MsA9mCJNkoXWJEey0p3RXA0q69I K0pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=ynl+T5Wr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id lr13-20020a17090b4b8d00b0025c1d114af0si1762243pjb.93.2023.10.03.07.52.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:52:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=ynl+T5Wr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 688DA819FC42; Tue, 3 Oct 2023 07:52:48 -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 S240374AbjJCOwm (ORCPT + 99 others); Tue, 3 Oct 2023 10:52:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240349AbjJCOwJ (ORCPT ); Tue, 3 Oct 2023 10:52:09 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00081CE1 for ; Tue, 3 Oct 2023 07:51:46 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40572aeb6d0so9994795e9.1 for ; Tue, 03 Oct 2023 07:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1696344704; x=1696949504; 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=Rt4PWI36LT1R2nI/NQBkxbO8D5dykJYeFhT6i3lm7MU=; b=ynl+T5WrpM+1eMKQ5X6c7e6XsTUTRL+fWMeXwaGeoHjJkKOZpo6t0dgE0yH/w9gHAE jYb81WPRhTkENuRjIgGe/tz9HFsO1deG+ZGYUy54bbaW3Zht1iEui1iWjylvgOER6SOm Cw1+xsJ/wSnzNYPcpCbGpdc7OY6A66rgP8FFv8d5zITL5auOVoJh8ih/pl7PmbYv+RUV HXEiVLReTXloBEyiGgwPLfrIlAIdspBcgX9nBXhn9XzNjLTrsZYq5Eiv0wtv8JrVhHrF 2Yf1/bjbZaTfS91xVL9N1OUMUWXL1ajP5WIdqbS7b7cqOV4JVtnU4bxZAWjPkUdTSz8p cRog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696344704; x=1696949504; 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=Rt4PWI36LT1R2nI/NQBkxbO8D5dykJYeFhT6i3lm7MU=; b=fyd6J7UVUnj6KyunNVgTROKdD8NioVVjjODb485ffwhxGaLXduFJ0TN/0h/DE/zUis hQbPyVhzFwGOb72po8QD9fpQPRnZ82H96p2jF0wsPrCGF1x0wRaPJJQeF72H0pEirlqV LDae7Y99pgfDXGovVdw3ChMw8I4u5qxFYmQc0do4dtjhfvmdrMtFzDrWtkRWaG6NJUlf nZgVhG70yAl6jL3zil5hPWeCdG4EXAEryznaIggbhhVcEhC7syjlhqgRoaweTphUsS8X d+V1Dr4o8B8m7sLvHPCJzTAMg/oWlgkTITQvqvoskUTBGK7X9x+X/ZBwPNRZmf+4ou1Z OFHw== X-Gm-Message-State: AOJu0Yy3hEfD1WUgpmI4+XpjnbwH7GbkWbREcRcVIISF1gH4NgmLLxCX e/pIJSLWdMo8w7RCfejGD4//tjNeaiEUzxRI+tc= X-Received: by 2002:a7b:c858:0:b0:405:40c6:2ba4 with SMTP id c24-20020a7bc858000000b0040540c62ba4mr12415097wml.5.1696344704147; Tue, 03 Oct 2023 07:51:44 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:51:43 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 26/36] pinctrl: as3722: use new pinctrl GPIO helpers Date: Tue, 3 Oct 2023 16:51:04 +0200 Message-Id: <20231003145114.21637-27-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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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, 03 Oct 2023 07:52:48 -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-as3722.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-as3722.c b/drivers/pinctrl/pinctrl-as3722.c index f0e5d87ac50b..3d3adf9793fb 100644 --- a/drivers/pinctrl/pinctrl-as3722.c +++ b/drivers/pinctrl/pinctrl-as3722.c @@ -502,14 +502,14 @@ static void as3722_gpio_set(struct gpio_chip *chip, unsigned offset, static int as3722_gpio_direction_input(struct gpio_chip *chip, unsigned offset) { - return pinctrl_gpio_direction_input(chip->base + offset); + return pinctrl_gpio_direction_input_new(chip, offset); } static int as3722_gpio_direction_output(struct gpio_chip *chip, unsigned offset, int value) { as3722_gpio_set(chip, offset, value); - return pinctrl_gpio_direction_output(chip->base + offset); + return pinctrl_gpio_direction_output_new(chip, offset); } static int as3722_gpio_to_irq(struct gpio_chip *chip, unsigned offset) -- 2.39.2