Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3107269rdg; Tue, 17 Oct 2023 05:05:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDNXYcnSp5c5EIOrZHm5vmKsrxvPf2LFqIEsTuolWMcuw9rMLlY0egJ/+Z/nDljSaSEZoc X-Received: by 2002:a17:902:ce90:b0:1ca:1cf3:e72e with SMTP id f16-20020a170902ce9000b001ca1cf3e72emr2360129plg.45.1697544338097; Tue, 17 Oct 2023 05:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544338; cv=none; d=google.com; s=arc-20160816; b=GcHtfSA1p7SfrvK473qLLoudgOW3GsdYT6afegEdF9DowiNXig9oggKn7PyjJfOv7k X6Q7DKJulQ0OnLw9EX+bJgXOAG8cYWGvYba4MW7g5gKHMSOrPbWytdzlBiaHNRCpQ2o4 I3Ehil9CPakWROcyuNAjfmuATjDa5t+P/79OdnZdoE/6zwrJO0fu/JHjxuMfz+QFRBll SeNzW4skLlTgGFce7Hj1f9OxXR5FZthErbPH0MUsyQp6IdMiGbHcQ+qJCnDrKcmn/B0O 47X5pVvgxRVP8MLOuH8BPx583xanfLA5cmwllLGr+k13DBJGD2iYwzq5G4vEXUZ0wHdY tOMw== 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=H58FBovONkBFAtGhn37zN4A9drmVE/E2kcDVb0X5d1o=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=y0RGgPYBNOxUDjyqaSpVwWlblb5yp2Vy11/Fd2bwoIRJsJlyBGnUn0yaErk+HtmLA3 hq8j3MdYsHjtNjfPJNmA+dCBw4koK/oIHEDkd7n3uPCJFCpDpHnloVsOC2YO1Qq6CEPk o4Cw4MGEArk4Wc7sY5AQkFqyZ06PzJv4ZJz298Pf8ndJVzkHAKkdsdf5lgJVzTjKDDmV oPLanMzyaoRsFM8OzMkE+kVj2TakWw5UjTJOQltxAFhwg2NYZpAincMZ9ck5mEWiNs4k tR0q7lajKQAbPX8yYNtWIkHiaXVWjOBN7glWxfMO687zVV47WP3Bb7QuzfIqwbVbQ5pb 6OJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=fX6d6qEd; 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 y17-20020a17090322d100b001b9dda4e1e7si1713221plg.154.2023.10.17.05.05.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:38 -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=fX6d6qEd; 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 3EE91801CBEB; Tue, 17 Oct 2023 05:05:21 -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 S234928AbjJQMFN (ORCPT + 99 others); Tue, 17 Oct 2023 08:05:13 -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 S234651AbjJQME7 (ORCPT ); Tue, 17 Oct 2023 08:04:59 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B449101 for ; Tue, 17 Oct 2023 05:04:57 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2c5087d19a6so52211201fa.0 for ; Tue, 17 Oct 2023 05:04:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544295; x=1698149095; 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=H58FBovONkBFAtGhn37zN4A9drmVE/E2kcDVb0X5d1o=; b=fX6d6qEdmAsmceVcSpA7mQ7qD+xAzTnz9mQ8KUMGvXzR/Ipmzboud/6TS+ddyZqoos t2iiclvUWhgasFMv/tkzsI5GqSU0l4IfXTL+JNDFKj2lcPOAJT1HeNW4oAwrogYM/4c+ yT8zw08FMi83BAflBF+SrmDwKYR+l9VmUyz2ikInkdJ2rWUR9STPMCYQfnm1WpUHJxIW qN/1V1n3XYg24fWI9ieVSbs8yErODyfnKeTwer1EK/IDvbr8ELXWST733fIrgijHZtNR ObcyEkiWljy8aqEj34ue3x3WP0u1e4HXXlutwATG+h3s2XGoUAZ1v2hKaqPfJwrfEhzH yRoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544295; x=1698149095; 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=H58FBovONkBFAtGhn37zN4A9drmVE/E2kcDVb0X5d1o=; b=xMGdDyXEmuhmKXBrHyQ/VOnZY6HFj8B5eY7dbsH/6BOnelSgqtEcxMgvsBUlSnSgLZ J/D9+HnzWXVSjnwq8k7Q6dOkFRD1nvOP8Zx2WKwxwiBvh/2aCtHmnS1FzLOLvv6jqrjP kBgLmos9sLVYIiGHyXG/z2GmHIVvY3u+km1D6Q4z/lKAsjcdBbs9FZivgroXBmbBeTWl ExjioRhDYTq3R7WzLaWHCaSCumwpHpFy/NzuHiImWS9WvOFpNpyIIe2HQ4qDE2va/hjE AVHgJAf6sHfFeVydPNOKo2ahQH+dDUU5FmNvBejYPM+WBWU/en2bq8vesCKLQvPVp6dp k66Q== X-Gm-Message-State: AOJu0YyREEMzZJybX+tXoGEZNpatvI0SfhFKouxpmBE+Wp+VRbldz09U cvOxTdMa/U1q3I2dTrPkbsxmQA== X-Received: by 2002:a2e:9396:0:b0:2c5:275b:c5fc with SMTP id g22-20020a2e9396000000b002c5275bc5fcmr1585322ljh.0.1697544295299; Tue, 17 Oct 2023 05:04:55 -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.04.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:04:54 -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 v3 07/73] gpio: em: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:25 +0200 Message-Id: <20231017120431.68847-8-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=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 (snail.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:05:21 -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/gpio/gpio-em.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-em.c b/drivers/gpio/gpio-em.c index 858e6ebbb584..35c65ff43f71 100644 --- a/drivers/gpio/gpio-em.c +++ b/drivers/gpio/gpio-em.c @@ -229,12 +229,12 @@ static int em_gio_to_irq(struct gpio_chip *chip, unsigned offset) static int em_gio_request(struct gpio_chip *chip, unsigned offset) { - return pinctrl_gpio_request(chip->base + offset); + return pinctrl_gpio_request_new(chip, offset); } static void em_gio_free(struct gpio_chip *chip, unsigned offset) { - pinctrl_gpio_free(chip->base + offset); + pinctrl_gpio_free_new(chip, offset); /* Set the GPIO as an input to ensure that the next GPIO request won't * drive the GPIO pin as an output. -- 2.39.2