Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3107297rdg; Tue, 17 Oct 2023 05:05:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2eitUQTcZEW+ZvHCvRd4o5nozCQ9PQrLh2G0cc3OlpwR1WakFofD5bRCZNhooj0eBNipm X-Received: by 2002:a05:6a20:3952:b0:17a:eff5:fbbe with SMTP id r18-20020a056a20395200b0017aeff5fbbemr2382953pzg.8.1697544341222; Tue, 17 Oct 2023 05:05:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544341; cv=none; d=google.com; s=arc-20160816; b=H1ikvZwm5BbAvbOMJXOV8G6EHHnbQsM2PTPSPA5z1Ag8k8qfgqtbf9bMUyhMqji2ms QJG28cUndxhzOh17yjjwXy6IKxwUEnyxpB2zgapsahUafE6ct/5XkKkv3GMYO38l3VLE yN5xlJ/1Iod1C5g+V3OeSb1CvCts3E/D8WK2YZFhFmU64d+PimHIbPFPfUfZsO4+tP7r lbn/N65Yyqu6Jee97KbAZxWzuaFDAB6IhJvNaqVCUckP5icrmYVFsMg9XencpNP9Y9C6 U4jLcyVnYuQU3SNu+IGYQ2PVTOK6AFKiz17HO7LW9Wk8zFuuzRx4yXRfGhel1xvibuIu 3IzA== 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=oKklGkxfnAqinncSlSkchK2k3CX/0axnYu/+hfRNakU=; fh=g1di+ncfnqFEHXnYbpOEbb70U+FLGOFEIPRcPLXzxVA=; b=zVbHR9bYWZlTUPp85BAAntRmRe6fCLM9YF4yEa9Y4vmGaqN52q4QksslY8KHRiaNC0 FqGwt7L82P2Eew877hBUHWjzMyVoFbD9e/mdzlCw0awvNdGt3kQXOouysKMATAXbqhCs xVYwtfK1OJ2ubpnunCXpIcte4wQqL/d2p/x899aquv7ahUWtAYb1OOFX2q587p3oDna1 7VTD+NOdC5TktDh+nKRGH8EIKq7y/S7RaveLOsMt9yhTpVjhg5XAERsmpa7eJfPADfcL wxOGO5g2XnO63uL6VgxbfQgi2qTU266geDAqn/4TtTbC+ElpMeolYVYnnpj7JsfxT+iA Zzkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=WSnxP7xB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id r20-20020a6560d4000000b005ad14d37968si1532687pgv.773.2023.10.17.05.05.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=WSnxP7xB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 E1451801CA4C; Tue, 17 Oct 2023 05:05:22 -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 S1343532AbjJQMFP (ORCPT + 99 others); Tue, 17 Oct 2023 08:05:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234891AbjJQMFC (ORCPT ); Tue, 17 Oct 2023 08:05:02 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47AE5107 for ; Tue, 17 Oct 2023 05:05:00 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2bfed7c4e6dso69721711fa.1 for ; Tue, 17 Oct 2023 05:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544298; x=1698149098; 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=oKklGkxfnAqinncSlSkchK2k3CX/0axnYu/+hfRNakU=; b=WSnxP7xBtD730Xep5nlPEijSvGnZHzTpNPlq1MNrfg/rm0sjZontk9k3cTBmDrGXHZ dg2okQU4obug0GHkGppX87hjISVsb29oegkbjOxRSJ5IFPNim0kFtbW0tGknQwYPpopo JrWKLBNuhVzck+wLPaHBL5PLNBCtlEZBC+FF/6AfaZMW1+JNIF7/26StgxvHvViqBECl wFG9jlRUeZiu2OdcYqCTBYSzULmlbCZy6LdXB/aFCNJpPo+oXMyBARmKZcowQBNteDiP nY5kxwsghCp1wn1NGbzSGdQxH9crdB8NNaFx8DewLQmwUf86I3xt9OgpXHQK0ZrL08V7 ZKDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544298; x=1698149098; 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=oKklGkxfnAqinncSlSkchK2k3CX/0axnYu/+hfRNakU=; b=bBB5wX00Qf2bZW4rxuxZmrqXK/a5VZhg4Fn++b/zRCqAEyfa0JoUbu0sfOtFGkrPld wbnjHbTND93E4b6EOyj70N+bcPV3tMpdPNYdf1J/n67xZVjNMWUCmJ2pxPIar+it0LP9 2Kn+EtybVxUcuFxqiCzFxldiE7INrSvOgow1/TmTse3NJNobrsY8QMuAQbIOw1e3OHlY IqmvILJlLYDMdXQkBWWDhFwMHQyE94xtyMtNdF4jLgu1lbE40XofjO+uv3htvklv0Wqt hS7hLqP46HBpkRnbFs09RZUMlxWh/SEGbzEogerItVgsWE7dQbZr/rZPOza6fgfMpoMW vYXA== X-Gm-Message-State: AOJu0YwfUB50RDHLbhx1DbM9MSzb7SKTPdEOK2vtYJtxtwG5nrZ+LgeO ZaGuPaUJmlErmZch+Js0uYS3meLFPmqZH0WGDfk= X-Received: by 2002:a2e:7e0b:0:b0:2bc:efa4:2c32 with SMTP id z11-20020a2e7e0b000000b002bcefa42c32mr1382001ljc.37.1697544298531; Tue, 17 Oct 2023 05:04:58 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:04:57 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Subject: [PATCH v3 09/73] gpio: mvebu: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:27 +0200 Message-Id: <20231017120431.68847-10-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-Type: text/plain; charset=UTF-8 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:23 -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 Acked-by: Uwe Kleine-König --- drivers/gpio/gpio-mvebu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c index e5f2c2d2a721..c0ca0aa7b5cd 100644 --- a/drivers/gpio/gpio-mvebu.c +++ b/drivers/gpio/gpio-mvebu.c @@ -346,7 +346,7 @@ static int mvebu_gpio_direction_input(struct gpio_chip *chip, unsigned int pin) * Check with the pinctrl driver whether this pin is usable as * an input GPIO */ - ret = pinctrl_gpio_direction_input(chip->base + pin); + ret = pinctrl_gpio_direction_input_new(chip, pin); if (ret) return ret; @@ -366,7 +366,7 @@ static int mvebu_gpio_direction_output(struct gpio_chip *chip, unsigned int pin, * Check with the pinctrl driver whether this pin is usable as * an output GPIO */ - ret = pinctrl_gpio_direction_output(chip->base + pin); + ret = pinctrl_gpio_direction_output_new(chip, pin); if (ret) return ret; -- 2.39.2