Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp768759rdg; Wed, 11 Oct 2023 05:13:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHr19zxHbTjksfW5OQ5I8C/jKyGROh8oBUnGbh7OJYOUDgeg1PUtMpRI1rlSLrBo4n/HSkM X-Received: by 2002:a17:902:e847:b0:1bd:d92d:6b2 with SMTP id t7-20020a170902e84700b001bdd92d06b2mr21816740plg.10.1697026380428; Wed, 11 Oct 2023 05:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026380; cv=none; d=google.com; s=arc-20160816; b=Hd/Js1juaHAUWS8wEth5s7f5CHnQxxAaC+tbbnfq/zjAFoQJw4D/xTIOWySiYNml9f NzglhmyfSP4I7lotWyCzDvtG5WutH7yKTFEGd3tXWJEnwurE/exDa9M2unKWzYbrOrY2 6G4UdZ2VGgJ+L3C/QJqfSkK534J1XLOg1sBS1rq0nrhqDTnS7910uHnt8+mZ90oT61Ax voLaXSqI0JWnwHszClsJXLtNZ17QwcSzYmuBLezMIhvZPlDN+u2dCG4TrMYhZwU78Pvd DQb6ChpmhhLK3zEIEa19XRdBtazNUHDFqHSeFvTSaq9+VsVOFuArwvw67rRE1xgZ4BEX 40bg== 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=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=hoyG+Vc0O7s+zhE0GloPD08ZsUvrQeERkcV2X541wBdJNeo2ERQxbYpM0E54U4DVt8 zOa2l11VDbd54Tgxrgz+RMOYx4gYxzWxzd2zy8Qw56sdUJDnFf+BCGcPCSFwNQv7ACdh RphSP3fUfqLf4ae1XtAWAWc9W1x68NFCmUtPhLaY4c4EAFkwttvORnD4ro2kuHrok9zp 61BdJE0z8fKMphn9zI88UJj4b9WEs9lznzXmj3UDiSxS5Q5TQxCpRyYlF9FUS0OWfkLr Ojs5/sD/mOD0RKtndckBh/PM12e5ewqmLqB3DTfXg0P4S87NKTUKvwDOeZ4hNFKGjMxF E8Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=yX+WZ5Yk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id h4-20020a170902f54400b001c61bd9db5csi12929643plf.317.2023.10.11.05.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:13:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=yX+WZ5Yk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id F3D53810AF51; Wed, 11 Oct 2023 05:12:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346898AbjJKMLM (ORCPT + 99 others); Wed, 11 Oct 2023 08:11:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346880AbjJKMKO (ORCPT ); Wed, 11 Oct 2023 08:10:14 -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 8F118D42 for ; Wed, 11 Oct 2023 05:09:42 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40651a726acso62579525e9.1 for ; Wed, 11 Oct 2023 05:09:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026171; x=1697630971; 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=yX+WZ5YkbR7Yd0Tmxx9CdpWcMFstVJX7wUYthIDjtJiFsFIVtql0qlx9hEdgFY9/WG r4IOLJzuT0BBNzw2MN7xRTRwFx1ji3B0Mh9UbKvm/M2Yv2/xjhGiIs3O/lAE0ceTROxt +DiXzePtRHupRUhF0UXy0AxGiQmPNjKeQyfNEjWc/3RT+lxpliWaU5ng/zu5RvYc/NiS Skuabf2sHiQBGxIz/EZ3cJeG1C3ECLNUQoVzGfo75Cc9eAAepvvS1s4Lfn39yzTI5uul NJvKdlipY/rMQfYpqySj3gOCM5SdShnC/EeJtyP8SVOAQe04qCCgqxnEc2s/VNo75DJA LaKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026171; x=1697630971; 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=P3m1G6h9GCCWDpjdfqUz87l52ubRj5EtPeN409fDkpTz6Tf9gn27rKeBrwAR6FrjOx x+c3TOGsfQacJ1uMwQVUP+/LWCxyWW8txVU5rnAlubHYFYkTObF426s51bK5zW8hIIxf usxb3JE2M1FcG90BeruMcSqMrpqAnWch16JanOAiBEeJ9JJBhBE7zQyTnq02sAXSjd8Y bgacmNf+4RKrFXlH7KMejcdQ3RB+h0G9l66LaP1lUac9TePB1X6SF6dYmsfI67luVHNB lbH95q9wjMfzdtBBMsQ1aq/fuS/DeiZZ69J/InoH5PsQGa9UoStebJWJydxGtJZvUM+B wo9g== X-Gm-Message-State: AOJu0YwjGPBRgz+tmQFuE+spB8DEqaiIfQDIjrkqfjlYVe+6u0xiup+t /qn8CecvhDjs19c4H/HlnBRn3w== X-Received: by 2002:a05:600c:3790:b0:402:cc9a:31a7 with SMTP id o16-20020a05600c379000b00402cc9a31a7mr18273194wmr.19.1697026170842; Wed, 11 Oct 2023 05:09:30 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:30 -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 26/62] pinctrl: as3722: use new pinctrl GPIO helpers Date: Wed, 11 Oct 2023 14:07:54 +0200 Message-Id: <20231011120830.49324-27-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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:12:41 -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-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