Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3109216rdg; Tue, 17 Oct 2023 05:08:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEeiac1zIxiROORyymD2N4xzkhkhe7bha7TdzawuKuVdOFn307tEiT3U9402o8U7sCeoGcr X-Received: by 2002:a17:902:fa0f:b0:1c8:791c:d782 with SMTP id la15-20020a170902fa0f00b001c8791cd782mr1965607plb.29.1697544503467; Tue, 17 Oct 2023 05:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544503; cv=none; d=google.com; s=arc-20160816; b=tDTIGm2BCsZSN5n1nwcd6IM13/l3pmt6aiO963upIqHc1jvAqxqyHN+dLlertoN6Ye bKPKJjHRQVgs6rVJLkPzK5OWRFXxcIm/WT2plST1cdgbYwXzKtbGM0y7uHVJhTct2pNt snhfL1tNIbSCvNvbW6lG+DtUDj22gpN80ZFNlxRuE4iD2rhXAExvudrlbACWxzKeyPgA kksNyYzYPKmEuwYpElHvDie4aDd4qn2RSPF+pcJKgJxVXfvvsTx9A6rXV5hTmnTETHux uNWGp0ahItESZc5EXji3Y00aod9RWJBKa3cPY4gVXPYAhFPeN6+IhHEkTECyRgFNjZdW +4Wg== 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=t4vMZiIUWAcFjSUyJWdkZqLSvd59iWFi9llO7wZj/o0=; fh=76dPTPnVOrVbkdsEoOFtXl1v557UiSAB0BTIjC2Z5V0=; b=c9fTIaU7gZRp72ytm+PrlWGMWhMPY0yLp+O8L11bc8lhHi4FDvauwP0ohBPlzXjO7g jbzdsgwYNkVTE7XND7ktLLcYMBRVnWfq4gq8bOuyWLaBhmdRwwLy733LwHxmqT5y1cp2 oW8jDcgsFiGavXw6zw7Ur6KvJTWAnqt9ur5ZnZ7OAyHKcpFdWaWS0rxtmgPZnF1LhtIm YyovRXTOaALorkGsDbY1yETW8bxyOv3Oa5qzit7fi4ld4WvX8Q1mIC3nuBtOnRfu44g5 BgOZ1Na9JDEawROxJeS44scRfXCxU51aWPqplWPm2RBkrw8/ssEujBrR6erO7n+t1KRK gT/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=QbCX45hN; 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 j16-20020a170902da9000b001bb9375b349si1768838plx.536.2023.10.17.05.08.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:08:23 -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=QbCX45hN; 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 35DDA8065006; Tue, 17 Oct 2023 05:07:59 -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 S235001AbjJQMHz (ORCPT + 99 others); Tue, 17 Oct 2023 08:07:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343759AbjJQMHL (ORCPT ); Tue, 17 Oct 2023 08:07:11 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B6121992 for ; Tue, 17 Oct 2023 05:05:23 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-407da05f05aso3973705e9.3 for ; Tue, 17 Oct 2023 05:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544319; x=1698149119; 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=t4vMZiIUWAcFjSUyJWdkZqLSvd59iWFi9llO7wZj/o0=; b=QbCX45hNaLu6XKChuiuAhVoFLWZhUxIjoxLGFbcR2Qphvsl9w2WgkfLD1zItmatcJV HfPrLAP8DUqOLcJpxyWauMuzSNBZrWTSJ++x9vBQ1tUKAAW3zAXNWOnLRBETcxTcOY+w C1wiMAPtKbonTdI7qX5wBQcNXZtCF6sC54At9zqV8/DfIr+n8TnG9jCmZLvlok8/g9L0 rqiLpu+PtPwoRbTz9h8Fxh0ibR4OOKxxA381tDnmgSP9jOqJ73nYf7RXVjd0J/LKOv5l yUpduYR8vb26/rqaoo0ZkvY1IC6cgp7Q80zJzBGfJ/7HPddSak3PYXzkCQhKuXHFqfV0 89ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544319; x=1698149119; 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=t4vMZiIUWAcFjSUyJWdkZqLSvd59iWFi9llO7wZj/o0=; b=asXxusWuNEwpAuTzP/nwNh5pr/8TP/KaegnAxEp4TzN7bikfVbsU0tbMrvXywIKtFv 1qCIWtr7xrxovFak6SsfvZosNbBJWur0i3msYy+CK1CUalHKt5TNmOxLBhLuOi60Aylw zWHkSk3xKEIbzbBEo6orOKKK0z6JTSli7Dc6EZyK4TJpBIeZOLOtMBCWXgxXqJ2eQZOv ayusTU5bUTenZHo9G3MMFjxBuDxSckbZmgVMqNUnsuRglue8Tco7lmVLjyh5iN1QsVgj TbxuOFY1AcRMO0cvWCE6f7BF65KeZML4+TgwyIfMjwVCrqz3dn2bnUQkJgUbA2Zgue8s 6bdQ== X-Gm-Message-State: AOJu0YyXf8KMrDzxXhctuEoufnRLnoHvZGbpp81Va7irOuq711K+LmEe Oa+af2Wi4T6v9HCUJzs1r+r6DiGWUQtDRGlMR4M= X-Received: by 2002:a05:600c:818:b0:407:7e5f:ffac with SMTP id k24-20020a05600c081800b004077e5fffacmr1517642wmp.41.1697544319212; Tue, 17 Oct 2023 05:05:19 -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.05.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:18 -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 , Mika Westerberg Subject: [PATCH v3 32/73] pinctrl: intel: cherryview: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:50 +0200 Message-Id: <20231017120431.68847-33-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=unavailable 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:07:59 -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 Reviewed-by: Andy Shevchenko Acked-by: Mika Westerberg --- drivers/pinctrl/intel/pinctrl-cherryview.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-cherryview.c b/drivers/pinctrl/intel/pinctrl-cherryview.c index b1d8f6136f99..f806b7ce086b 100644 --- a/drivers/pinctrl/intel/pinctrl-cherryview.c +++ b/drivers/pinctrl/intel/pinctrl-cherryview.c @@ -1148,14 +1148,14 @@ static int chv_gpio_get_direction(struct gpio_chip *chip, unsigned int offset) static int chv_gpio_direction_input(struct gpio_chip *chip, unsigned int offset) { - return pinctrl_gpio_direction_input(chip->base + offset); + return pinctrl_gpio_direction_input_new(chip, offset); } static int chv_gpio_direction_output(struct gpio_chip *chip, unsigned int offset, int value) { chv_gpio_set(chip, offset, value); - return pinctrl_gpio_direction_output(chip->base + offset); + return pinctrl_gpio_direction_output_new(chip, offset); } static const struct gpio_chip chv_gpio_chip = { -- 2.39.2