Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2012933rdb; Tue, 3 Oct 2023 07:52:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGK6eAEDkwGmlPiNQ9JY6mgcKsxdMxowtnzp2EqyL/K4vHrDplSdv1hBlvzqgQ4fM2XSAZK X-Received: by 2002:a05:6a00:3912:b0:690:2ecd:a593 with SMTP id fh18-20020a056a00391200b006902ecda593mr18206301pfb.26.1696344775963; Tue, 03 Oct 2023 07:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696344775; cv=none; d=google.com; s=arc-20160816; b=0J6coV6TflvsCeFBNRC39GomNWyDzkJyNMYcxZ9nVkihlh1UrAPLLI7t691z4Guo7X pBMzPJmz/L6N/a480ZSKpSBP/4YWzCLcKEWhCKAsXlLAIrQx9o3fSMBjurRntTtnfWXl xv2i65lgzzwud4sIKhQZ/xtrd+x66AJ1cEVI7lpW+wK2ChAESes/o8SD2x7GwgoTRKIW ZyoUj2dTjIQfYHyWtEqlRDluiNwOujt6sZ7LDCrfDLRYlOh7Omzgu4zFryGN1g7V6URT Urpfb8Yr9LfTV1MCG+VVWOYUbLyESl6RWkJosUSOHTkvqIgbipiL49RLoi9LxUCicCOF 3HCw== 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=gdciYkeI9ojIVFf6NUkn/u7//A2Bey8sZm2LXyWrQBM=; fh=sFZAJ5ezbypTez9WcxrfVuMim2Eh6JACjzNsyeVATp8=; b=DEjLKD6ANA6wx+yp3TAhoixresBntV3F1pHxCiT7/O2XBNzkCSAbEQ16dN6HZm/I6b P/HlG84VZfbfvJTXDfz5Q9yLGROpk7mO5PEIhM3F5nbZweeFU1UFsEYATttyS8zeqjDZ 4RotVvUpFkLKh1FJKAlC7CLiUxOeHIwCBtAqvMdMHIV5NAHs6iOmFIK2v7WEt/rPCCJU TidFu0wPeQ6O1U7LEadm5rMW7uwrO5IoYsD9Jskan8wm1EFqvYvPiWTcLup9U2p4CxxX v6xB7Osnfg4Etmcq8UXA/0hIyg101NAI7fIh92a9zvDt22Pt+jtCxqAkXCnlsXuKNViI 6Csg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=0tWUdjuE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id d2-20020a633602000000b00585a45417a3si1634305pga.156.2023.10.03.07.52.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:52:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=0tWUdjuE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id E947382B929A; Tue, 3 Oct 2023 07:52:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240360AbjJCOws (ORCPT + 99 others); Tue, 3 Oct 2023 10:52:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240241AbjJCOwI (ORCPT ); Tue, 3 Oct 2023 10:52:08 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31D1ECCB for ; Tue, 3 Oct 2023 07:51:44 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4065dea9a33so9888135e9.3 for ; Tue, 03 Oct 2023 07:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1696344702; x=1696949502; 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=gdciYkeI9ojIVFf6NUkn/u7//A2Bey8sZm2LXyWrQBM=; b=0tWUdjuEf5ruRk9Q6Bu879uwluuZBDOLvuRlV+zEuj1EZF2wtdOaxlsG6bNFzjf4x4 v6vEhs4jJ1bleBX3/QxiChIsocP9rUf65qkBSHCoMNMieFyltrqwvTaxZ9m8E0licv9m +BeekMnMTdak7RdZHWovf44s7euzNyvLghgrRp1lavN51A4rvShaMgRmNsFMNeguOp9V 1smDfovN2arrOtbCQhqMRaXb6yvIgtQHcIjwkgZJLqKOf0z6cY86/wFUWuDEQc8kmou/ Lt++BJ6L/mC/zXo2xD0DNKZV5CKTiiY4vGvdvQ4II3ZbPnc3R6/u1zpZ8nIsUmvWb7tX itdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696344702; x=1696949502; 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=gdciYkeI9ojIVFf6NUkn/u7//A2Bey8sZm2LXyWrQBM=; b=dZtICDE1s/5kc8FGXxJHoHzzs/FsBrgCEmCpsqf0sIpHjnO9Q9n21imRxTvALbXVV4 gebR+CicbAHNsd/NoNvOzIFERVfskf4/VzR/ACT7b8NRLQzGtDL+/oEmoabHTFbIs13J 2tAaG25VgGi7h+6yXc1LfT3gAHdzCjYL8pjexBVXaNtjLcqbOkdALyNjcd2wGmDYZnjM y4zzFXIdMdkTeIrjFvQzONzdFD51mPFLVhDzAZBZi6lqph2CsMR3UceWVCiObI+Af27s yPA0JyFKWWjcNouxQS06FGkUeAyi1r3wfXIcLF2RByrDsc+YJX3AEtrMGJRR3rkL3t4j 7vrw== X-Gm-Message-State: AOJu0YwFYs3nKSNGIFFQ/NrRCH6ANlvHaN3A1h6wt9YdV2Vd+ucZenca roSs1Dr+QtJ1BEhIMSM0j/De4g== X-Received: by 2002:a05:600c:a3a0:b0:406:4d8f:9fee with SMTP id hn32-20020a05600ca3a000b004064d8f9feemr14497527wmb.24.1696344702396; Tue, 03 Oct 2023 07:51:42 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:51:41 -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 24/36] pinctrl: vt8500: use new pinctrl GPIO helpers Date: Tue, 3 Oct 2023 16:51:02 +0200 Message-Id: <20231003145114.21637-25-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=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 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 07:52:55 -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/vt8500/pinctrl-wmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/vt8500/pinctrl-wmt.c b/drivers/pinctrl/vt8500/pinctrl-wmt.c index 6fac30de1c6a..1a313295611e 100644 --- a/drivers/pinctrl/vt8500/pinctrl-wmt.c +++ b/drivers/pinctrl/vt8500/pinctrl-wmt.c @@ -528,14 +528,14 @@ static void wmt_gpio_set_value(struct gpio_chip *chip, unsigned offset, static int wmt_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 wmt_gpio_direction_output(struct gpio_chip *chip, unsigned offset, int value) { wmt_gpio_set_value(chip, offset, value); - return pinctrl_gpio_direction_output(chip->base + offset); + return pinctrl_gpio_direction_output_new(chip, offset); } static const struct gpio_chip wmt_gpio_chip = { -- 2.39.2