Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3107814rdg; Tue, 17 Oct 2023 05:06:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZGJPaOnRQqNCvA0rVirw0UlMfwcorC301Z5d3hd6T43fFqNCjp809Xq68+cm9t+HLT9Fp X-Received: by 2002:aa7:8883:0:b0:6be:4b8:c864 with SMTP id z3-20020aa78883000000b006be04b8c864mr2187291pfe.5.1697544381678; Tue, 17 Oct 2023 05:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544380; cv=none; d=google.com; s=arc-20160816; b=bw60SFwbvmuppiOynT16t5qLKi5dynjdTGgBSOXRccuVPWqkFXC9wVREJc4duh/jzB XJQLXbJo8TAWFutLtGp8nURY1+zCvD/mIkjhMvhI9tDk4/vWHnu1sqZX4l/GNtwezJEB q4vGz8kjk4kgNbPk8BhAQIrnS52m0nYcT4wDtyKl8nsk/Inj/pYMgVo25F/PqRHFLdoQ mDiigDwgtQ3p0hK8zhuiMtH2h+zXERiVqEeTn43x+AOHDL9G0pec5A6pYJ/KYkSYyeC4 AUEOYf5psND4Bl/kMkIxmsrmPAw83Bu0AcNbHikytmHp/60CNtenIEcmV+QuJKjIJ1gr vbQA== 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=XfWYSE8ThvfQSJQ9/Fq2M/H6j3nV1pBrLUi6/wp2wmg=; fh=o1Ifn8U1ldQwa5W5EUCwknSNQCTKA2I/zXpiTqz+V4k=; b=gcx7Szhqfcj4Nzz004zlPquGe86JqHtg2p/W0wNDp5hB5STVd1AX0E/zwuH7wn9nCa 4uHq3g0kF8dVjHPjjhalmAIEk0Z+1RnZ8UhwgA7948n/F8EeJEmXJ04zZ7vmH2I/OKU9 KP+BylB0MiRetJUtgwIa5RhHTMCzbBKHf/Ao0DK6qb4qdHMXhis7W3Xy4dc3uvpnJGF2 oNz3YCHkQkt1IqkdAtA6BR6XqVfgu3NvIZ6m1YqKYaZ+BtRU/9UtKFruUa+yqJcLbMpB a+MSKsuOjXUZDWdBX/RrIpmV0cgLo8a/qpnPNNuCpqcVClT6trW41VaCMoZcgSpbXZWt xJ3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="I8/jxjVc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id l7-20020a056a00140700b006902507d409si1559091pfu.174.2023.10.17.05.06.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:06:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="I8/jxjVc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 E6331802EEE4; Tue, 17 Oct 2023 05:06:02 -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 S234734AbjJQMFn (ORCPT + 99 others); Tue, 17 Oct 2023 08:05:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232593AbjJQMFT (ORCPT ); Tue, 17 Oct 2023 08:05:19 -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 769FA12A for ; Tue, 17 Oct 2023 05:05:04 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-40651a726acso50639765e9.1 for ; Tue, 17 Oct 2023 05:05:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544301; x=1698149101; 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=XfWYSE8ThvfQSJQ9/Fq2M/H6j3nV1pBrLUi6/wp2wmg=; b=I8/jxjVcGmbzuiyNmyRR5oYWm17jbLEIoWeIUS77KwUk7rdRb7RKMRpTsNGAjz9AhH 5/oyNEPr+NgglaCqTeEfQRZrOUKaNE4ST30TVYApwl8u4w3CcmBajkshYrJyIMkOaWrK Y4pxdyMfjV6LFhKsbKvqW9CHPygu6FxPnz0prljvZ3OMLtN7bLnp6PQz3XVOXp66/u/Z Gj+SYqkJoRihDmjdzM5MjwcECuxEDHK3hJgxt71cQSactp1muplsVVp97pzAeRDees4F kr98t014kDZ5lHo9LnhLXqhPuyar1Ajt2vE2hmxv0LMAm/LEAFSyLkoEhgJXfnan9CXH KRqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544301; x=1698149101; 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=XfWYSE8ThvfQSJQ9/Fq2M/H6j3nV1pBrLUi6/wp2wmg=; b=SZLIuYfwQ3/gfo79hS+T0//Msr35a9TBmrn9LtdQEN6h88ly5q0FYn5UUFlwwkh2eU X7xdNAmivTZOBnu3XLmcAoeLRbhwrzzwhK4igHekqX1RLyPdStrNt0tCot/1x1hp79+U HUC6TYGBn+i+6ldsf+cdXO1jdwafDVI48kvcSvrEHXv7aphykBPLrErpbXPoWKvdG4Ry XoRhMf6eXxgqg1mW8VgqvJrYYB7qbZqrqoUN5GwZg5G0E8cDtlockKn/Acjvsb8wI/j8 bClRpa3ZuE9Ssm0wDWyz5Hn+tEI4nvpfZRAIy7mAopbqgPq9BIVYCqoS4Ij9RvLkY16c LB8Q== X-Gm-Message-State: AOJu0YxHnB4IslHo3HQpi7SSf9I/u8L84WimRHugLBgquvUijXao895i WfdjXFG+00AeNlEaKqrPORIOvQ== X-Received: by 2002:a05:600c:4f85:b0:405:3a14:aa1a with SMTP id n5-20020a05600c4f8500b004053a14aa1amr1685911wmq.18.1697544296151; Tue, 17 Oct 2023 05:04:56 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:04:55 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski , Andrew Jeffery , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Subject: [PATCH v3 08/73] gpio: aspeed: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:26 +0200 Message-Id: <20231017120431.68847-9-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=-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 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]); Tue, 17 Oct 2023 05:06:03 -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: Andrew Jeffery Acked-by: Uwe Kleine-König --- drivers/gpio/gpio-aspeed.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c index 58f107194fda..d3aa1cfd4ace 100644 --- a/drivers/gpio/gpio-aspeed.c +++ b/drivers/gpio/gpio-aspeed.c @@ -750,12 +750,12 @@ static int aspeed_gpio_request(struct gpio_chip *chip, unsigned int offset) if (!have_gpio(gpiochip_get_data(chip), offset)) return -ENODEV; - return pinctrl_gpio_request(chip->base + offset); + return pinctrl_gpio_request_new(chip, offset); } static void aspeed_gpio_free(struct gpio_chip *chip, unsigned int offset) { - pinctrl_gpio_free(chip->base + offset); + pinctrl_gpio_free_new(chip, offset); } static int usecs_to_cycles(struct aspeed_gpio *gpio, unsigned long usecs, @@ -973,7 +973,7 @@ static int aspeed_gpio_set_config(struct gpio_chip *chip, unsigned int offset, else if (param == PIN_CONFIG_BIAS_DISABLE || param == PIN_CONFIG_BIAS_PULL_DOWN || param == PIN_CONFIG_DRIVE_STRENGTH) - return pinctrl_gpio_set_config(chip->base + offset, config); + return pinctrl_gpio_set_config_new(chip, offset, config); else if (param == PIN_CONFIG_DRIVE_OPEN_DRAIN || param == PIN_CONFIG_DRIVE_OPEN_SOURCE) /* Return -ENOTSUPP to trigger emulation, as per datasheet */ -- 2.39.2