Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3108867rdg; Tue, 17 Oct 2023 05:07:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjS1UZc9vZBz11Zh7BqVEMIIr5OM0UcLyHMMb3QAXYwgX2XJO5vWJTpQmMFricOECiXarC X-Received: by 2002:a05:6a00:1895:b0:68f:bbc3:df44 with SMTP id x21-20020a056a00189500b0068fbbc3df44mr2475040pfh.0.1697544471749; Tue, 17 Oct 2023 05:07:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544471; cv=none; d=google.com; s=arc-20160816; b=J2Cm1Vb1dcPw5IeJXydP+m9C95cJGemhgFNpxw7O+6EVTPiEvKYHLU4v/tOkKtIlSS dHuNO18EnznfwnQNWlGw0Ww9JJ7X49pMyj1yDQ7OQD5f/0fgkVMeDDobJbHbMkyaHD+L SiNaR2r1lza/8qQQS3DyQzDBPEER8AmDvEi5UL6ODC6EqXxfKqmaMIq7PQwLLzHSrLOY uMZ0PYKPvbv0x3voTvMgFJCskKrWtTJwRTT3PPk1eGdXg+ciroNK1PGz32PdHiJBdAhX 9C4/JmzvfjkFaa/BSujbhBemUFJFHCE3rAUqkAOXCuJAaBH1S1Odf80FDjfIh+dJhIct 7+iw== 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=/mhvT3LGVBR3ArbIn65CBOCRrTrRmKVKXHcP7Km8akM=; fh=76dPTPnVOrVbkdsEoOFtXl1v557UiSAB0BTIjC2Z5V0=; b=BY1/6xR4uMSaEYbCTVwxhC+J6baHyXcuNNbEuC0pPeV1E8Tz/Kg2N3nYBUOSht5HJI uoSWWBuL2HIOHAySsS2cH88zzovL4mdB96brVkVkrFoEgoqYGc01Bi3TUM27phJSYqXi XCNInWMUZHOHDqjEKoNkGhBnREQCd3/T6VlpZWhjIjpFLH2C7YeZ0SWQQ/A7oVsRadIS fYvf9NwT0hsAwhdGfg2Sb3BgA0OkqckwSO8gqvxBVpB8GTIqVeCvsJNVtCE60RnDzlC+ eppPrFcmKtavuYgWpBL9eet7Z3dmxGL8C4dcHYuVlkiywwayn2uoZHJn1LdIcx6xpPtX iDXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=FAxRI6s4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id m23-20020a6562d7000000b00578b4082453si1648694pgv.712.2023.10.17.05.07.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:07:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=FAxRI6s4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 69EC480A28F1; Tue, 17 Oct 2023 05:07:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235083AbjJQMHa (ORCPT + 99 others); Tue, 17 Oct 2023 08:07:30 -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 S1343561AbjJQMGr (ORCPT ); Tue, 17 Oct 2023 08:06:47 -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 AFCE9199E for ; Tue, 17 Oct 2023 05:05:24 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40684f53d11so62516505e9.1 for ; Tue, 17 Oct 2023 05:05:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544320; x=1698149120; 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=/mhvT3LGVBR3ArbIn65CBOCRrTrRmKVKXHcP7Km8akM=; b=FAxRI6s4n6cJU5UiEJKgX7H14xb5ird95C6Jl0iFf1+rI0yUv6c68bKvW6+AG8UCFY z1l09HcYjUNXjJjwiGBj4/steMwp4lKIPAiuvqMs4KkmYFCc2aoDhsfVB7liSm5hX1rD LjxrQWXa2jGndYNpjRjXjXItpBCRH8Ilw9LTCJyrTXpESIhGRqtzIBoPv473wLBdAjAr EJkXhT31E3p7+VNCv6/Qs/QeuafSZf6JhzhmH7V7JHwSYJ3bquuAyd5pnO4w4Y0hdScQ RGrkCnunKWM3e8pOVz66HhoTtstTrQxFXj/PoJdK6wI+sYwwGaxyCU7IstcgPArGihSp ufjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544320; x=1698149120; 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=/mhvT3LGVBR3ArbIn65CBOCRrTrRmKVKXHcP7Km8akM=; b=MbKXUmZAiVhHnIa7j1+N16fwq5p0O4qOH4plMi3JcWyGXmBRKNfLLOnbFQH6wFBHRd r2wLsbI/U3xi77vGqOoBzdPGinmlpfQFJKwjhbB3y0x5CKlSVXmJAcA3vgt2sV04vLhn O3mpJPLpaOe/Y1tmmYx4yysOf9NtMANOsDdy9mQgT8Fgu0QBg9JEV0nukZUnTftTSCTO vqP6CMWR1Ya5i65AYcM0JEJzjz8p5l9ehIyz+VdnFLrxFz0u69shIqw21sKu2f1z8XUR i8P39MSqcaGILp4xGKcWa8f+vDa+8Iz1Tmro0f4nIg7v5fKifi7hbHtMJ7GynXwTn8GV FYMQ== X-Gm-Message-State: AOJu0YzbNmc8v5aLNgspmFs5FCqH7GgNqWwX881/UA+tgdPKZMNJbwcp RW3VoqlRfzAe6tDf5INc5vANfw== X-Received: by 2002:a05:600c:5490:b0:3f9:b244:c294 with SMTP id iv16-20020a05600c549000b003f9b244c294mr1727964wmb.35.1697544320063; Tue, 17 Oct 2023 05:05:20 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:19 -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 33/73] pinctrl: intel: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:51 +0200 Message-Id: <20231017120431.68847-34-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=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:07:46 -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-intel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-intel.c b/drivers/pinctrl/intel/pinctrl-intel.c index 9731a3acb23c..f403eb78f355 100644 --- a/drivers/pinctrl/intel/pinctrl-intel.c +++ b/drivers/pinctrl/intel/pinctrl-intel.c @@ -992,14 +992,14 @@ static int intel_gpio_get_direction(struct gpio_chip *chip, unsigned int offset) static int intel_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 intel_gpio_direction_output(struct gpio_chip *chip, unsigned int offset, int value) { intel_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 intel_gpio_chip = { -- 2.39.2