Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp766588rdg; Wed, 11 Oct 2023 05:09:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGRtFbc/Y548XjgCag3lVNg4lfADavRngr0el7EL22gdImmN3GFPkgECkeon4q1xkz+bDFb X-Received: by 2002:a05:6a20:12c9:b0:142:aced:c643 with SMTP id v9-20020a056a2012c900b00142acedc643mr21777078pzg.31.1697026189740; Wed, 11 Oct 2023 05:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026189; cv=none; d=google.com; s=arc-20160816; b=MSZByPgcnpvYzJ7SRXuRDKUVyXCvoKxtNjpbay1BvJOTNhDqfgJK0rC/9P4sjup8c5 /DsoJT1KWhYh09JQs0nUlAbaOtrBv0S/ANPmkUO/tOQgxK0+qLWGzx/3pHhAuBkd3xGh BpTU1UrzpOUsqW36wsoTAfGV0g3kJq80nmaEvEwOwHaKZUiXp83hRyDLQcE79IVvEeFF G/WxJ9g3oe155LxsXNuw8IhbmbLPe4/Ioqj2py73/yHOItgzbK6JN7lV5F4N3N5XGgRG 0dLo+5es3iEUT86jn0x5iTSeLuswCZ7S7zINzaLe8s3HQQUv8Z4uPifAJ0mO+eu6EuAE jn/w== 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=icYrwF7jxGyZfxdkLAJd0y1aF4G3t/6nxjmVee2aWOo=; fh=uMsfw3Q10lbCwlOByNqQx2xNQZULDCpjJcfrWyTbCKo=; b=jZuUgg4fcu6Fz6qqBVtMUrb94Q8XloiGIOZQNRt2vojG1Ne7JhYY2XJJXF7hI5QoxN 3pu3TDvPy8plachfZ05kDk06mrs72h4FRt1Z/xQKAs2xHlhovDvAJua1B7jeyQn+vzrd kZu21p2Ey96sTfhLQKLPbNIxZPRTGuTybdJSG1EafkmRJ3ogDtXuEzQwyeSD5IGUFd1p x4wcPHWtkUoOIzkTvwmhgcq0ruGRhEKClBAfhEhI9O4KPcsQoIxk41eZG55ljOlLQyu6 3MkqBVGZLV5PuVBPbIcMeArI6rhIAqgoHMrPJfJVf3zz8ABkJY0FLycq9yrbnVUTwHKV NUXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=QCj+p0BX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id i11-20020a6551cb000000b00578e98dec9dsi13401740pgq.160.2023.10.11.05.09.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=QCj+p0BX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 97A8480DCCB6; Wed, 11 Oct 2023 05:09:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346714AbjJKMJU (ORCPT + 99 others); Wed, 11 Oct 2023 08:09:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346262AbjJKMJL (ORCPT ); Wed, 11 Oct 2023 08:09:11 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 712BB91 for ; Wed, 11 Oct 2023 05:09:10 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4075c58ac39so11613135e9.3 for ; Wed, 11 Oct 2023 05:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026149; x=1697630949; 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=icYrwF7jxGyZfxdkLAJd0y1aF4G3t/6nxjmVee2aWOo=; b=QCj+p0BXTT+x13Z5eQxTkd3UX2kN20ZRoTbj2ZaRx0Zn0s/UCiuQv9p5X/d/z7xjvf gq/3QrvYIdsuKDKB0VIuQIAYVRwFZszmmHP5hUmUfgtN3WOjfywAuMf9/6B/wgvQMLFB 1xUsEcOmk8ObqZ62wfkU2JAGjLwkdTUFQqxIOZp8BvXL5SnpNLiN4Bc/5JXUy68rZaiR IclxDZmc1qqNbLAUrraU7yH5dCCf5N97fuxaEfOMzGt0sKp3TVnZFXnbGWGTwNxq9k8G atWADmjeEWBldhb2bZAojm5G9Thqx9ZYRjHUiDY5vNHYap4YMOY46Uwt/mWXwjoKzit/ lAJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026149; x=1697630949; 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=icYrwF7jxGyZfxdkLAJd0y1aF4G3t/6nxjmVee2aWOo=; b=lpsjHiJErGNM/aZoeofE68SbnWApz4H7ZlJHlLn69y+W8HwUiu+HuPZYgl2xz48ta3 lBv11Ac3XGTXvinVKBWUye0CPCtF1Bay7Ikw9D1MpctDPd0w7/jPmYJtqYI0Yj4N/mnT g5gaASeqWI0COhi7xgqSmckeI0yAFrzDWKfxBR0hej3D9TGbWh/qhv8nbOWuj5kk8xPC ogznyuedBcPEg/3K8OxyxTC76Pg9ZMqyEnySeeBd6CvQSMHPUiOWuyVidbQK7+87geKd WpFugjbiwiTts2isKHXK4dlBelpWzJAfafcbwkpvz5iQAHvmoFg+AWq57+R4TgeOfHWu Yaqw== X-Gm-Message-State: AOJu0Yx9ycK/grghGdsEIXKb1tT8CJuEP5weDqMWlk543OSqd1b49sQS JFQJZpyzarGu881urH8JvqCgEw== X-Received: by 2002:a05:600c:4686:b0:405:95ae:4a94 with SMTP id p6-20020a05600c468600b0040595ae4a94mr17712597wmo.5.1697026148848; Wed, 11 Oct 2023 05:09:08 -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.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:07 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski , Andy Shevchenko Subject: [PATCH v2 03/62] gpiolib: generic: use new pinctrl GPIO helpers Date: Wed, 11 Oct 2023 14:07:31 +0200 Message-Id: <20231011120830.49324-4-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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:09:45 -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 Reviewed-by: Andy Shevchenko --- drivers/gpio/gpiolib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 191f9c87b4d0..cec816b46679 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -1965,7 +1965,7 @@ int gpiochip_generic_request(struct gpio_chip *gc, unsigned int offset) return 0; #endif - return pinctrl_gpio_request(gc->gpiodev->base + offset); + return pinctrl_gpio_request_new(gc, offset); } EXPORT_SYMBOL_GPL(gpiochip_generic_request); @@ -1981,7 +1981,7 @@ void gpiochip_generic_free(struct gpio_chip *gc, unsigned int offset) return; #endif - pinctrl_gpio_free(gc->gpiodev->base + offset); + pinctrl_gpio_free_new(gc, offset); } EXPORT_SYMBOL_GPL(gpiochip_generic_free); @@ -1994,7 +1994,7 @@ EXPORT_SYMBOL_GPL(gpiochip_generic_free); int gpiochip_generic_config(struct gpio_chip *gc, unsigned int offset, unsigned long config) { - return pinctrl_gpio_set_config(gc->gpiodev->base + offset, config); + return pinctrl_gpio_set_config_new(gc, offset, config); } EXPORT_SYMBOL_GPL(gpiochip_generic_config); -- 2.39.2