Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3108814rdg; Tue, 17 Oct 2023 05:07:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYjSLgMZGx4PLP0wie5uMeyOw5y7v+zZfp0mJ749340S3tZcKsWXILaSjqWCHiOixfS7mK X-Received: by 2002:a05:6870:9a88:b0:1ba:ddf2:417f with SMTP id hp8-20020a0568709a8800b001baddf2417fmr2226895oab.2.1697544467038; Tue, 17 Oct 2023 05:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544466; cv=none; d=google.com; s=arc-20160816; b=WZ8KtELpe5KGJ4ZQCyBJmfG6qNTMQx7lLBZUa+T0/wvTEvzIIqj0Fm4VSb6Bq+if/W 1AO+yMXgX+tNbDfYzkUzOWQt3VQqAV8/JZ4IBIoxez3j8JRyZf1wztpL2ZW9s7o7wAes 7AxvI8ua+NlKFX+ZMACZ5+N0PjklKyRvoX+Rk8WWZYix80L/5YQMYcfjzKC+I21QxFmZ OYnf5gZNzAUbji08C/++7GaYvljyJIj7BsnjRh7eWceu4pyPN8Emj9d7TcOFGpPscGL+ FIXFE4u8kzeYZHkjfEsTVjc3sceLOF56VRPxeQXHOEDQKq4aZ8PnP+FYPC0a6zAUnZdp BN/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=IZbQcNg3B/LU86gXN0G+aZQrL0mShPNyFWtL4aswWFs=; fh=76dPTPnVOrVbkdsEoOFtXl1v557UiSAB0BTIjC2Z5V0=; b=IaOntowx7cFmOMxQUkjaqhL3rlWV0ZFhw13DVQ0nWRegPzEr0jsEwoCQaVI2BXgeLI 2cGRAxvIg/x3D6Z2R5TBgWmuFgZRfujOxnHlMF/ZIm0pHcERn9tAsisZhdMRwxycF7am fmtKomGdXDugNLhe4AGjrjrrYg6mxyceAOPyif/5XmEHWk8iOV9g91F8MLQLNPgZyKbO AlPLj7q2jRS62oSDAc+tNSlBt0lhy6N8qmX4gvX9rMwaSOSMSHL7tpQ0CLoTQRtSlv5O 0nAbJBmqweQc1p+q1NHhgBfql/Me1/lEUgYsyxukNVYf3WSjuX1PVUA41r0MvCGpy+kU Ct0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=0wJzVaaG; 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 x4-20020a63db44000000b0058543c16567si1652960pgi.459.2023.10.17.05.07.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:07:46 -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=0wJzVaaG; 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 69C39801CF9A; Tue, 17 Oct 2023 05:07:39 -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 S235058AbjJQMHX (ORCPT + 99 others); Tue, 17 Oct 2023 08:07:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343504AbjJQMGo (ORCPT ); Tue, 17 Oct 2023 08:06:44 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D75E19B2 for ; Tue, 17 Oct 2023 05:05:25 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4079ed65471so4277315e9.1 for ; Tue, 17 Oct 2023 05:05:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544321; x=1698149121; 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=IZbQcNg3B/LU86gXN0G+aZQrL0mShPNyFWtL4aswWFs=; b=0wJzVaaGbXiIWzduFcHWPdUwaQ4zl9zp7gYqSW58RdmXX8Bh+z9nWxA8qVKxIZnFpn hZ8utH+XJLBLEiEuPoOGt/y4N+D6AA2gq/bPq65OHBCw745CtYCFzsdVbUdBFCHDibVH wFbxZXPauT50ukx0BkAu5S/Xtd9G3shtqHCKEbkyWyHMyl/yT+W2BHvLpaynDkqGeHbJ GQ1+MiErYYLFte505KQ25B406n1uvNVGvAEd4WATKbXeMm8ZVuP5Ioj7lCPPMlX02Qxs PWxep3iKI5sDpoG6MXXz2Nfxvx7PsprwxF4JWz3GoTAywMjYAnTeVDRfCgldtcs6ZiHs 7lPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544321; x=1698149121; 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=IZbQcNg3B/LU86gXN0G+aZQrL0mShPNyFWtL4aswWFs=; b=m03s180TTArhKn/vJfTuP9CCcnJCMKG7Vb8NJEfOroaJdsHKqZX2r9z+SgtT18qXeh Lc3p8UMUOYje5MEJV+z6gqs/9k+Da35xDy8cIpWw3RmluV4XITv06h/VHPcd5VQWJNke aJJvznMWumMyycNamkd7/azzpTaCw/TlSSFMPKtBdEGU/NAxRhiQ0YFM8o2n2bb+//cM 6TJN9FG7AH6RZu8LDIPdK2nTpbBlmYfIywPvpuIyO2MwKjlf2tLrNRCIGLsvnDGIvywz GCAw9mgoY4ZZNVEweCrPPAHlK2pSL7cXhWcP0KandW2uiPz2vJGrpetrY5j3ayRsQcJ5 9x3g== X-Gm-Message-State: AOJu0YzfAWGM+QwVqPk7NqyVQQhfFRSLtCHQKMOFiAUt74hiasJdJX2n GEiabJMukgcNQiZxJLWz4imH8Q== X-Received: by 2002:a05:600c:1c26:b0:402:f501:447c with SMTP id j38-20020a05600c1c2600b00402f501447cmr1604758wms.0.1697544320913; 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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:20 -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 34/73] pinctrl: intel: lynxpoint: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:52 +0200 Message-Id: <20231017120431.68847-35-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 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]); Tue, 17 Oct 2023 05:07:39 -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-lynxpoint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-lynxpoint.c b/drivers/pinctrl/intel/pinctrl-lynxpoint.c index d7bc9ef29fcc..91d228fead45 100644 --- a/drivers/pinctrl/intel/pinctrl-lynxpoint.c +++ b/drivers/pinctrl/intel/pinctrl-lynxpoint.c @@ -541,7 +541,7 @@ static void lp_gpio_set(struct gpio_chip *chip, unsigned int offset, int value) static int lp_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 lp_gpio_direction_output(struct gpio_chip *chip, unsigned int offset, @@ -549,7 +549,7 @@ static int lp_gpio_direction_output(struct gpio_chip *chip, unsigned int offset, { lp_gpio_set(chip, offset, value); - return pinctrl_gpio_direction_output(chip->base + offset); + return pinctrl_gpio_direction_output_new(chip, offset); } static int lp_gpio_get_direction(struct gpio_chip *chip, unsigned int offset) -- 2.39.2