Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp767168rdg; Wed, 11 Oct 2023 05:10:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHC+d42X6eS7rGgyue1KvKZdT4eXCZS8Tj4Jo/ADMkBGw7gqxEeVTIzgOOv1MDACuiW1TMi X-Received: by 2002:a05:6a00:2e10:b0:68e:41e9:10be with SMTP id fc16-20020a056a002e1000b0068e41e910bemr22938217pfb.20.1697026243304; Wed, 11 Oct 2023 05:10:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026243; cv=none; d=google.com; s=arc-20160816; b=oGnOXD2Hl3CVWase00pJScYN1z/zw4H30xOcfSLAvnGgTCfcioC+oaFemH1V93sSEE tQmZKnQzpViqoK2+A30ZhXuD9yDpVxN65pjr7zMlm4SuuOyn/PUNuCWgKlWn85PMJZaR kovJoGWqXbFnbu1IZDi3YVoziMdqh/zYKvei6e9a4AF0U8tjNZIHvAkExn0Ne6fqi11a 3pXL3MLv0v/Rb1LMSSJnF6yrtYy5c7RPzis1zMRoejaGsDeFwwmNC+dHUWqnOr1J388X +8fyv1pXXxpLnHtHnkhMUBCnR0nw1YCoL+1lIQ7V0GwVJ6Q4aIc7SktjKS7HrUKaI17m +YnQ== 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=n2xq1c7gkK7UBvFiiWYtPT4/dVB/RGOfCXDnH3L0uQ8=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=tz2k8sY62JwVKG0cZnXug281KFQwKukojlBmuT08iuWrYZzD5DZMhoCJ2I4bsVh6a0 gaAJAIkVDMgVXzSaDA/E+dwWNo+mTKMMxRyBbBNgUtbpNqtGUPKQcAOxAqMDWYa11GPJ Od7GG9tpo/WGEwzmTATl3c3Y4fRQgo17ivsrnk0YnpYa1OrRFRCyLn72o51D0B1gUXgd qYNJ3EFfETep7svg9Zlx4s5ariCtt/IJiUKiSDvtkmxkktmDVQuo6FOvszhGZGko4EYm eIUC/HBmCkKVYQEsg59kE5AyTprYJ3iYwbZsFIv51svWwDoIJhq111lQ7TxDQzt7Z6L1 R+Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=Rn8Y2Rgt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id a27-20020a637f1b000000b005824bad8f83si12338031pgd.846.2023.10.11.05.10.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:10:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=Rn8Y2Rgt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 48D6A80A07D1; Wed, 11 Oct 2023 05:10:20 -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 S1346799AbjJKMJo (ORCPT + 99 others); Wed, 11 Oct 2023 08:09:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346472AbjJKMJU (ORCPT ); Wed, 11 Oct 2023 08:09:20 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD0049E for ; Wed, 11 Oct 2023 05:09:17 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-4064876e8b8so66731965e9.0 for ; Wed, 11 Oct 2023 05:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026156; x=1697630956; 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=n2xq1c7gkK7UBvFiiWYtPT4/dVB/RGOfCXDnH3L0uQ8=; b=Rn8Y2RgtcJbL2C2I9uXAMDRjbwn4rxH3cudydrpFBWpho07nFQ+P1pylpd4gc4so/f 1e9SULpX+ttcw4qR1pv/9imewdtyRX5Es+cdsYotoCo/6GDXL3Kft0N0juMoVGpLOVmJ ZSF1qjpFhNB/UmRh40a4A4W1NdZzg3+6tm/sMcyWtYfIbzbEGyuUC+GLo5N2I6St9d63 nH/o57BJ7EziL6hJCYyDiyXCwgggUO7QaucKpUDdc5E6602T6amQcrUNyTtW1OMFV7pI oiSO2oWkQ0U5OCICejnIu6IR8ND6jrM4vUpYWxNv90YcaGaPO3DmU0bdH6rF4r6w9qu+ iX9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026156; x=1697630956; 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=n2xq1c7gkK7UBvFiiWYtPT4/dVB/RGOfCXDnH3L0uQ8=; b=tueTDpapC2+kQr16D5WekFHI/PkzulClYvLUubRNsPT5/9/nX9w2Vjdrmsm4IMKXTO B7fVEHqYr3hT+DA3WnC70ZETk743UWB+q7SjH4q3ZPWzgNDt5p7iKfga92lhtrfkz+/C 12sZvmsv3bJAub0crD+dC77eGnJarS/W7ovnwu7lSNAtFzBfi0I7qhJdw9bileJVdOxJ aMRlLDzfXjLT+ebLv5diP5xhdD5SV6w6GYA9PLsJIARofBIV19f/4tquIj2jLVA5vNpS gbZnW/qlU6acogcCAqYJfiNdQFBshe65HXtoZWwTrqYEWLM/mh6DKd6hxMoOjHGXw5nl aKJg== X-Gm-Message-State: AOJu0YwRSXcOtDjoC3mEbMe1lP1hIt/o6fRa4VoDlvwibUXaMKlvtClQ eSyuiTA+ebikHs7RaMVJkOXKJYZMizA7JEI13Nc= X-Received: by 2002:a1c:7909:0:b0:405:36d7:4579 with SMTP id l9-20020a1c7909000000b0040536d74579mr17252432wme.28.1697026156295; Wed, 11 Oct 2023 05:09:16 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:15 -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 10/62] gpio: pxa: use new pinctrl GPIO helpers Date: Wed, 11 Oct 2023 14:07:38 +0200 Message-Id: <20231011120830.49324-11-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:10:20 -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/gpio/gpio-pxa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c index cae9661862fe..2fd797b91270 100644 --- a/drivers/gpio/gpio-pxa.c +++ b/drivers/gpio/gpio-pxa.c @@ -260,7 +260,7 @@ static int pxa_gpio_direction_input(struct gpio_chip *chip, unsigned offset) int ret; if (pxa_gpio_has_pinctrl()) { - ret = pinctrl_gpio_direction_input(chip->base + offset); + ret = pinctrl_gpio_direction_input_new(chip, offset); if (ret) return ret; } @@ -289,7 +289,7 @@ static int pxa_gpio_direction_output(struct gpio_chip *chip, writel_relaxed(mask, base + (value ? GPSR_OFFSET : GPCR_OFFSET)); if (pxa_gpio_has_pinctrl()) { - ret = pinctrl_gpio_direction_output(chip->base + offset); + ret = pinctrl_gpio_direction_output_new(chip, offset); if (ret) return ret; } -- 2.39.2