Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp767770rdg; Wed, 11 Oct 2023 05:11:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTLHLdLLjXXxYVG2PQJhUdn3/2TuG6XlpA46TU5KkhxIg962/l/1BxKC8bXeXJdWgPk24A X-Received: by 2002:a05:6a20:430e:b0:121:ca90:df01 with SMTP id h14-20020a056a20430e00b00121ca90df01mr20783143pzk.40.1697026294583; Wed, 11 Oct 2023 05:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026294; cv=none; d=google.com; s=arc-20160816; b=bFm0djeb6l3rPGXfChrtStXVPKV1TQswomZut6ufh6iO4b8xBkaTcYPyh+rbCS81Nf 3adQ3yXwhargO616MbjRcn1sL6LPZu+ka6pGHTiBAfmnH8jbUsAOPozTen0UWRZdj137 dFnoDvXP3FTrBc1cj03mqMmf+66y4CZP61VYucoWMZgOrUuu4MDZOUgV0M2DMsTIljJa pzaxdvf3ljXb+DrnzJuCA6LigwExVi1t6xNgrW4cwj1kOWS0Ai3wMIvDPWgEoDRlaSAI QQQeVr34Lfo2zT504sE9dZ7PtbM6p+6QBMH7BfMBwgOwXCKnS0ad/4FJ9lQaR/9x3j3S WVxA== 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=b0sgIJXyiWCMH9BTQoi/ajBzkcQtsuv8BX1pVGl7zGQ=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=wKFm0Aosn2Sxdc6qOEPAzsvBbdxnx0aRzNt2ahphH7c5JFqhvEnSYf1Xgp21nI/TTS wHrvy/RyIByu9YSq/uBO/tehLX8XvHNZ+PdvDfDRwG8JHckV3SzLZJsuNVrh5mr0Bk8b 1W9KUq0T3DmEB22FSHdLWC4ewh3SGwYfij5zvdwz0zqW7fdrxF8bU20UtUd7vKVRvLl7 aIjtA0xyLA7HostW0QgBg50fAWG4ps6SD9DAd4V7NYVscffgawtKLN0ootRiV/4m14C1 YEx3FJ7zB4rzWZjdZsjtcOuOyEm2s7AUIlStYf4BjGjn/1RZvwZrp3+CrwH/74VZ1Mzt 1rEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=cwTXz9L8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id n9-20020a170903404900b001b864d88d85si13233695pla.636.2023.10.11.05.11.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:11:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=cwTXz9L8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id DAB2E815CD83; Wed, 11 Oct 2023 05:11:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346928AbjJKMKj (ORCPT + 99 others); Wed, 11 Oct 2023 08:10:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346815AbjJKMJu (ORCPT ); Wed, 11 Oct 2023 08:09:50 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CD2FE8 for ; Wed, 11 Oct 2023 05:09:31 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-40666aa674fso63475975e9.0 for ; Wed, 11 Oct 2023 05:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026164; x=1697630964; 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=b0sgIJXyiWCMH9BTQoi/ajBzkcQtsuv8BX1pVGl7zGQ=; b=cwTXz9L86Tjxsk73k/nrwBBba9NCjzbrAndkMBd66/8m+xHA7XToAtXdl+vhsLhcs9 v5pTKp3RO3NBhnLDZsKZUQ2oiUPUl/l2qHiO+ZV4tg2phKpfjVpJa72j1azwsauYpDMD FwFaktZvUlMc3JnNssD7qebArN5FomReO7L+XixwbLj3EM1U67X62x2UiNbuf1tO5LRV OjpUwrlgu62+/9pdX+vM8qN7Gm+dHVd2lLl9SGSoHt0FrmpG9eyiO9Qp+flBJQOY1Pox bBa2r8WCIjQs7O7/n35zOPuL6M4cGEd7dzAx4sDK3pZ+h/22av459o34sbMIgSUSTD5h KrlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026164; x=1697630964; 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=b0sgIJXyiWCMH9BTQoi/ajBzkcQtsuv8BX1pVGl7zGQ=; b=kNfiKgup/1JB+Mwyqur6kHEUT0j4ZYMawhm7+dhbRZn9ueP3qc4v5cmz767sg+nVZF EoX/HYqOV60GU5Q7riGJw2fG0IeJ7AnzeZhEWqRuVufJCLfhto27dDwVtY8c63nShofC 0fCNieHN+qaD+IHPDxpqSvTBrB+bDsCXWeDvik9IgLHdiQ1DPb0fhw63MDcbVI5plGMM f+yWOW3PPPNCsgoT5pDHbDwXCyN4EfGZak87RkHuGpir2/BmDAPRNcvNiYLtXyID6gDW B7gWHQkfq+bZGGk8Nxdn1dL9VJuIuRKXEvReZ7MogU7KDYmDqoyM7lJiBd3yWx/57IcF t0ig== X-Gm-Message-State: AOJu0Yzc/GgiARG5QWLT4Regi1q2FUkYcKnP/bHHVu4eLbKYDoHTO1zd bU+cus6ZQGxD0857IsWZ1sbeYg== X-Received: by 2002:a05:600c:ad0:b0:406:7029:7cc3 with SMTP id c16-20020a05600c0ad000b0040670297cc3mr17586904wmr.28.1697026164559; Wed, 11 Oct 2023 05:09:24 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:24 -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 19/62] pinctrl: ocelot: use new pinctrl GPIO helpers Date: Wed, 11 Oct 2023 14:07:47 +0200 Message-Id: <20231011120830.49324-20-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:11:20 -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/pinctrl/pinctrl-ocelot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-ocelot.c b/drivers/pinctrl/pinctrl-ocelot.c index f8ae2e974221..a6022d44ad6c 100644 --- a/drivers/pinctrl/pinctrl-ocelot.c +++ b/drivers/pinctrl/pinctrl-ocelot.c @@ -1779,7 +1779,7 @@ static int ocelot_gpio_get_direction(struct gpio_chip *chip, static int ocelot_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 ocelot_gpio_direction_output(struct gpio_chip *chip, @@ -1795,7 +1795,7 @@ static int ocelot_gpio_direction_output(struct gpio_chip *chip, regmap_write(info->map, REG(OCELOT_GPIO_OUT_CLR, info, offset), pin); - return pinctrl_gpio_direction_output(chip->base + offset); + return pinctrl_gpio_direction_output_new(chip, offset); } static const struct gpio_chip ocelot_gpiolib_chip = { -- 2.39.2