From patchwork Tue Oct 17 12:03:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 734777 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B03FCDB474 for ; Tue, 17 Oct 2023 12:07:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343584AbjJQMHZ (ORCPT ); Tue, 17 Oct 2023 08:07:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343686AbjJQMGs (ORCPT ); Tue, 17 Oct 2023 08:06:48 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A5C219B1 for ; Tue, 17 Oct 2023 05:05:24 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-406402933edso55833925e9.2 for ; Tue, 17 Oct 2023 05:05:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544321; x=1698149121; 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=IZbQcNg3B/LU86gXN0G+aZQrL0mShPNyFWtL4aswWFs=; b=0wJzVaaGbXiIWzduFcHWPdUwaQ4zl9zp7gYqSW58RdmXX8Bh+z9nWxA8qVKxIZnFpn hZ8utH+XJLBLEiEuPoOGt/y4N+D6AA2gq/bPq65OHBCw745CtYCFzsdVbUdBFCHDibVH wFbxZXPauT50ukx0BkAu5S/Xtd9G3shtqHCKEbkyWyHMyl/yT+W2BHvLpaynDkqGeHbJ GQ1+MiErYYLFte505KQ25B406n1uvNVGvAEd4WATKbXeMm8ZVuP5Ioj7lCPPMlX02Qxs PWxep3iKI5sDpoG6MXXz2Nfxvx7PsprwxF4JWz3GoTAywMjYAnTeVDRfCgldtcs6ZiHs 7lPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544321; x=1698149121; 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=IZbQcNg3B/LU86gXN0G+aZQrL0mShPNyFWtL4aswWFs=; b=wyHyYvYlv5k8io2PbZm+BP5Z1oL+YhJyuHYLoLlE+qj149J9QDoNSrf8/lmxNnhPAw qry0xD9yKJKfZ7T3lPUl1rVL/ukFTjKvYRAbMwEOfD60sC+B37MnpScvkL1ZIQ9ZY8Ws 8pGi/jVK0lQR7PE5FmAmF9tSw9vfgjkvHunu3tW82wiPcrz8mYNmoVDOoqDBfb2pfSvO ml/HlatylfCzJx394srPitn+yqayPj9I291CibUozjNV/1LOHrxOVPT+pTngnadNwIPx QbO23yAjOHnvYXMWL5F5uL4xkBCa2Bj6Fm/Ru3bYoUsHgTfp2kKRJKjXnvbEOxeB6qcw FCtw== X-Gm-Message-State: AOJu0YwrxCtJ6ozuLh7INBOFzBfzU5UtV3w8E5twzbfEg7Rb4IyaIAyZ 8A3FVm2+EhACCfuwhnciO2agrA== X-Google-Smtp-Source: AGHT+IEGqhje/Lg4Q9uWy5d7TptwFdHZ6a1KmpZGQ6Lm5urjoTanWnJa92JWj+6WVwM4Gk+L1e0kLw== X-Received: by 2002:a05:600c:1c26:b0:402:f501:447c with SMTP id j38-20020a05600c1c2600b00402f501447cmr1604758wms.0.1697544320913; Tue, 17 Oct 2023 05:05:20 -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.05.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:20 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski , Andy Shevchenko , Mika Westerberg Subject: [PATCH v3 34/73] pinctrl: intel: lynxpoint: use new pinctrl GPIO helpers Date: Tue, 17 Oct 2023 14:03:52 +0200 Message-Id: <20231017120431.68847-35-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 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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: Andy Shevchenko Acked-by: Mika Westerberg --- drivers/pinctrl/intel/pinctrl-lynxpoint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-lynxpoint.c b/drivers/pinctrl/intel/pinctrl-lynxpoint.c index d7bc9ef29fcc..91d228fead45 100644 --- a/drivers/pinctrl/intel/pinctrl-lynxpoint.c +++ b/drivers/pinctrl/intel/pinctrl-lynxpoint.c @@ -541,7 +541,7 @@ static void lp_gpio_set(struct gpio_chip *chip, unsigned int offset, int value) static int lp_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 lp_gpio_direction_output(struct gpio_chip *chip, unsigned int offset, @@ -549,7 +549,7 @@ static int lp_gpio_direction_output(struct gpio_chip *chip, unsigned int offset, { lp_gpio_set(chip, offset, value); - return pinctrl_gpio_direction_output(chip->base + offset); + return pinctrl_gpio_direction_output_new(chip, offset); } static int lp_gpio_get_direction(struct gpio_chip *chip, unsigned int offset)