Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp767564rdg; Wed, 11 Oct 2023 05:11:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG3jCFrK3RN0Yfebn8OhFbniLTIYF7XXOUBwxPjGuf20FP3X1eRuWbVc5tC27K9uVDy7yku X-Received: by 2002:a05:6870:819a:b0:1c8:39a6:77a9 with SMTP id k26-20020a056870819a00b001c839a677a9mr21039808oae.31.1697026279466; Wed, 11 Oct 2023 05:11:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026279; cv=none; d=google.com; s=arc-20160816; b=EOQdWQzcVvzu7u/HDUskwtfhSGsoR2upFnC1U35eDKl5mv++VHObTivmxPP/TABEFo tI3/6kyShNtvXGDPGU1texArO4sZsH1nL8SrKbDtHkKW4vvHQIOjyATVeSGhXXQ0+AXE 9OnBj4RbGY6TaN652ZHZlarnO2PMGaOuqgU+dChR8ilHVE//UdImDF63KjWwQokxcfpd 2CmUVG5DGgWfCtrb7cSipj/8Za23ilxPAWuJVDdTxK5QHD8Hr7flAa/ruK+tRf9FaZn9 OBcpwv8eQpzp9a4rmOnWl2jYGfHS7ZSk/VhCQYSkvNXCkfpJr93p1RiQXj0S/yrh11NT O7FA== 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=hTMa5cZZ6uI3oT4vlzj6gsQ7jI+KVP1OZTgzuMdgWaTm9k/urGvG5jizXUP+6NfQjb EkWhGb124Cm2Xqr8lXCbNMN4ma+nBQIXLZfHoOv8jfkZDAj2RBdAUQSaOXiHeYt+Lizq uNedZHXGqiTzGEyyU8QYbzxsuBHhGQZPubbw/3lcChOrOzH9LJByJsLQU6y2XOkig5Tj OA75vRV0JgupZvKdGlmcsLfrSXvdWdY/byTYhGOcB1fbI4Fi4HDG0zNZaiJgoCxSZG7n PS6sNWgtFvHK/QDSrvVmg5IgYZ7mJx11TVUpGKdflZCfLWXORdfqwSPdjFZHuAFSAIcd AymA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=0U3hJGxi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id i188-20020a639dc5000000b0058a09ed5ca2si11168908pgd.313.2023.10.11.05.11.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:11:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=0U3hJGxi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 2CF7D8072A08; Wed, 11 Oct 2023 05:10:13 -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 S1346790AbjJKMJl (ORCPT + 99 others); Wed, 11 Oct 2023 08:09:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346586AbjJKMJT (ORCPT ); Wed, 11 Oct 2023 08:09:19 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4EECCC for ; Wed, 11 Oct 2023 05:09:15 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-406619b53caso63173265e9.1 for ; Wed, 11 Oct 2023 05:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026154; x=1697630954; 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=0U3hJGxiWhuLvCZY3jznpY1Nwgyz6y4Tpefj/Ktb6OJHAfkQvsLIz+rr2+IW6MljkM d0qaUqXstYoozHHjGo7CAf+jFPvDw2ezPcWqSdj8YYjz1TzRy/JmxBUza2BW9rafC1v7 R75qM9FttYdrea9BbQiR2QILksqinhf0ROLEd5L2/UYcUU5e1Rsn3tP04ux4d8bsPYW1 OQfrNdbkZ+bMdvP9Vee00o4Fqc36K0EMOQN6NLStgTcSAX2j6PH/8Is9HEnZmUFhmstK MtwAo3v4Ebhz+QTH5Xezd5eiRibi+I9RkK1JqAGmMxswth9L8cGNKgyCFTB3Iq+k6H25 eo3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026154; x=1697630954; 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=RRjhPS2ssQ4XnPordS+sC/cSnk5y4ZbYr1j9/EN/LpGGJpwvmW/pt9oh8ewS8POR48 qzle4H8SYwMecZP9n/jSpXcpv3bGJAHqZh8cWa0aoVVxlDmpLeFqBUQUmxjOjgk0Pyao IdMzLMqvUdJMczuwijV7jvjCpq8reBVMOjblipxwSbmIf/FB399pGyG5BQCtGdhjybVF n/pwIxhMo2Q/4kTfjuAXCzz8b/veoIb8JBVbt1eTtrzyidrEnLv2774zn3dedk5KfqKD tQmJO4qO/Tc8SGAU5jf+hCwTsb3uLCI2UvIZlsGnNVt/VUsy50yXzdVD97JaHw4ubqlw EEcw== X-Gm-Message-State: AOJu0YyjcwSNEqV1q6RUP9MGRT3vioI/OJr2sLNj+h1qiEfP6i4MacEz pme1B22OO+HnB5eCdLRriMiWcg== X-Received: by 2002:a7b:cb8b:0:b0:3fb:e189:3532 with SMTP id m11-20020a7bcb8b000000b003fbe1893532mr18369038wmi.20.1697026153724; Wed, 11 Oct 2023 05:09:13 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:e551:3946:26fc:f94]) by smtp.gmail.com with ESMTPSA id w21-20020a05600c015500b0040652e8ca13sm19012253wmm.43.2023.10.11.05.09.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:13 -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 v2 07/62] gpio: em: use new pinctrl GPIO helpers Date: Wed, 11 Oct 2023 14:07:35 +0200 Message-Id: <20231011120830.49324-8-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231011120830.49324-1-brgl@bgdev.pl> References: <20231011120830.49324-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:10:14 -0700 (PDT) X-Spam-Level: ** 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