Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3107444rdg; Tue, 17 Oct 2023 05:05:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZIsX7iNbPz0qtiJSbCYkbvwK5LxJfEuy8qfw3tYBfhgxnzdjOefBl4J9fwWmz8QPmofnl X-Received: by 2002:a17:90a:fc84:b0:27d:8457:e541 with SMTP id ci4-20020a17090afc8400b0027d8457e541mr1566469pjb.49.1697544353613; Tue, 17 Oct 2023 05:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544353; cv=none; d=google.com; s=arc-20160816; b=sbHwAUKC2aMQ4FFCc41EiTdxJ51fo9GaWPZnprB8hCIWbV4sKccPJ5lp8Tq+lYE1Zq ZlqieUPN3HFw+Mun+3cv8OEJfJqtU21jPiF0XIixQV3LuoRWqer5TMBOcLyCWt/XWhxk yIaErETPzp738YOYzIxOphe7FbV/cGouID6nrUzZZFLiBmbhOZ3tJttH+LkR75NI+mOG AJ3s0NgfW+tXR/aer1Igl3MAeIUTGxuoeMqbtH3b2VbxMNoBjTpMmPVydL9J1wzB2ORZ UzcWoUXMNbBG9ZwzMejk6tF/lsUMKnDFVkdtHJ3oceb4cSuqBKDgKkPUyHpcl81FEvA7 4aHg== 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=hLohVSBJmrQiXKt1d4KEBtQw86TH9sOJlMUcoUrjAipN2vtE0cTd8lpIyEEWdpOi9y nBI7pZ/Jxfwo7Rqo2gIQ2KulaDRfCd1leJPrIOlHmARn+AAoDad3LRs976ZNipIsLL09 OgLnU0kPK73MxoSgEgpgxrm7FNMf3FhlfunaSM0m71D+PYfCCZM77Q/VkvlB22QzrCqd YSoBGW9fjDuZ+gQ0yq3h2krGMu6N+2iF2A3A63CA58ODOUZEkxeacM4R/+GDsyk4OL7E kSqhvONCkh1CXv4X/wav+WqGwIqdufqK3kzjlITPDX2eCCRfVhRj84p6unwzMqTiFeBB BnKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=0Ycswjkx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id i21-20020a17090adc1500b002791e648ce3si1531623pjv.174.2023.10.17.05.05.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=0Ycswjkx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 AEDFB801D0EE; Tue, 17 Oct 2023 05:05:27 -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 S234866AbjJQMFU (ORCPT + 99 others); Tue, 17 Oct 2023 08:05:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234903AbjJQMFD (ORCPT ); Tue, 17 Oct 2023 08:05:03 -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 4C261101 for ; Tue, 17 Oct 2023 05:05:00 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-40684f53ef3so59002635e9.3 for ; Tue, 17 Oct 2023 05:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544299; x=1698149099; 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=0YcswjkxOD7Y+pHjiFMzaeyEv8ofWJMRCeHfhsSwCR4XiMTA+FeFJrmsj/iTTTy5nI zI7ObaRZJn2fWLW2qOtt7+8dVvcIK6xTL11ga2QnGfBEdtko1CbJlMf7dLTNq5gue4iH ReSxBvdqaATQxsjiTYtTouYFzTg/BrE5fld/KY/TryAPrhvnEOaRNrrsBaDgAvG4o1uA Zu7JW/TrEbihLUkiFegQp8biXdUlo4+YRTM4/8jpJBsDWeluf6+1uj6AvY+gq7jUWLiA fnQ8XEBEPJ4yDsN4L7XG1nF461ub1jLobrY/1TEl6DynQdM1aencFDT2u87wiOmpCpWm A6fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544299; x=1698149099; 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=T08Y56/Vqp3Z/cheT6NFgaXKUKxN7OfQPFiFf3R5WUziKYthmQPU8Z29AUno3mujUh pE5cTswLBna3kZxQU7H7txDlD8KOOpmTlp55rU/T/1DDwemxSH5RZsXMWkEuyjdSILXT ydURKeM0gMlQbZwivAZOPijriKQI9j09VSye+RJmJ4zwgW5ryq1MfSLnC2b3ygmW6TcL 9be8XLwzx+x8v7DuY1cOMT5TIBv4kBgdkbozMegE0OXBOk0ZmsKTrHUVQcsXsVGG8t7E n1Y669AE+/L8U8tSiCMv0D9YaiBliGcu87sWeMw4ofzxLcf6mq2/gOS7jl2KT+muYQAG mEmg== X-Gm-Message-State: AOJu0Yy6QKVb3uY6oMDS+IqDLQ/LqfAWDFBNdTqRBam2gqPlJZahE5GZ y+3aEmXd9xDFKGPoC4vE9BZ5Hw== X-Received: by 2002:a05:600c:3148:b0:405:514d:eb13 with SMTP id h8-20020a05600c314800b00405514deb13mr1541271wmo.24.1697544299528; Tue, 17 Oct 2023 05:04:59 -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.04.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:04:58 -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 10/73] gpio: pxa: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:28 +0200 Message-Id: <20231017120431.68847-11-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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham 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, 17 Oct 2023 05:05:27 -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/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