Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3111011rdg; Tue, 17 Oct 2023 05:11:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+EtZiwA4uCDx3UFpKaAAP0U1d10ICKRGy2O7RCyOrwnTCkVq2m18eA1L5Gpy+JLklMLhW X-Received: by 2002:a05:6a00:2da4:b0:6bd:8c4a:ab9c with SMTP id fb36-20020a056a002da400b006bd8c4aab9cmr2205202pfb.4.1697544669097; Tue, 17 Oct 2023 05:11:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544669; cv=none; d=google.com; s=arc-20160816; b=lTcezM6iqV0S8G3mqB8TDeVR3dmcivwaQaiJFi4bYfmLuuGvU45z0Dd/gz2x+F3rk0 39r51wqw06d5bDyq2iVQdnciRT8jWQxV3q4ms7ZzbEIo8BqVFLElIfm4yBgQZTySbKBb wCcsmc4ZJJ74/Xi//aEUCQL/DQl2ABlUruaLfhJyYdTjK8HTIeBsqQCO+6H9+pDGc0HL QaTeHvIWskfUyXHRfl1ESZqskDTwNDBoiVPZXfucglM9+qNEpECiQRpKabkHthQNwqk4 DpFoqHxzN/HfbwSLNi16ymjKuEgfB85eDNksiJ0pZC3P6N+/BvtGjeHVM3WjJ5nFXKFq iRAQ== 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=+7umkbBqVb4ekwk4qPLSYyQOmuMCZz6eMQtDEbYpxk8=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=Z65QrP4YQ2JmXuczDw0Lg8NITTrjVXDZJvgh1NyOpEqIS9Xn51ZHFxcaFEzg+ILDzB hKaPgbcEfn4+R8M7LrfEdP/N4V+ZjlbP3ibbk3L83ppETRlXczhkbM3S6Y05bN1Y8OI3 SXio53vGIavAHzmflpfw1Tgk2OardPiNZwcaQt79tgb7R1mCqq5II3FitcNP6WfzooeF RHmi3c73ZsucjyULd5ZFqghoe0GLMgPl/phAQFqgueNDPxObfCMAs4gCYCn0/xYrw7WZ UrsW2c3QVWmIEXBLEs2tByFQXRn+2AKXi0uW7txqLomZpoCjJKaJ7lwnrds5oxUr4jaR i3rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=DTbSWCKp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id k66-20020a636f45000000b005b7c7efed1csi1626602pgc.295.2023.10.17.05.11.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:11:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=DTbSWCKp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 7C064802A2A0; Tue, 17 Oct 2023 05:10:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343664AbjJQMJG (ORCPT + 99 others); Tue, 17 Oct 2023 08:09:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343736AbjJQMHt (ORCPT ); Tue, 17 Oct 2023 08:07:49 -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 C052D2717 for ; Tue, 17 Oct 2023 05:05:52 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4079ed65471so4281465e9.1 for ; Tue, 17 Oct 2023 05:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544350; x=1698149150; 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=+7umkbBqVb4ekwk4qPLSYyQOmuMCZz6eMQtDEbYpxk8=; b=DTbSWCKpDG/jUEeSfmrLvMU4MEY1pibSgoetUeyDSc+/x0/6lvrx1lUTQUwLlMPyFZ VSNeSdC/2VI8jagtMok7JI1bi94Nl/Tnq5EOYnK0bE21KdudYVkcXnqXqMfErbtzj7Z9 M1WfIMhRYbUYl8U9PfX/+Oy2IrkdGqNmnZ63LFCw9zJATt4/Jirw8c1+PuILFjIgke6q gqHKxL3s2WehVnFzCQyRA36cSeCWljMVTxrAu+y/vQn2MjINnuCd47u1Kmdl9SC8BOLe hE22VdKyJ2IDvyiRBK8eW0AxnLBJTGbuAMOA3M1fxrvrMjPEDHfK+8yySMlsaBk8cd0L Mhzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544350; x=1698149150; 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=+7umkbBqVb4ekwk4qPLSYyQOmuMCZz6eMQtDEbYpxk8=; b=CIxvWdQ4r8IFVjsBhvhmCMrKByH9hiaA74T8tFnw3zZE/Z7xTH2fCXoOWvHtFnZr7W 8wpB/3sUBPHR9fSP0b2csfi3VbR1RT4slQSDKczA8OhMSurThvhCqsUR7DinJsT6tZN8 ocMblvi5TVtDQfrvH5rTGH75XStXuOV5kRVAsGdLXlpG4MoouGrl7/Senjfu+E7Eg2Ah r78j+wvnyxNT3UKuKIxbFa49y1+g9Z49kEHeg3uGzzS/XZN8xh36tToMC0fC9L5oAGno 2b32kvwn4Ysgn7slDPsOS6CvNLWe7SSUCGIeMxasJaPbRln7mxv7avR1affDa3Z4yvLw 27KA== X-Gm-Message-State: AOJu0Yz3EFXDatynjplgMSfTLkXjRKsbIsMJ9YhhbG+S9zJm14W+yudX dO5ap9tRYBRyVRaKUPkikefgxg== X-Received: by 2002:a05:600c:1f8f:b0:406:849f:f3cd with SMTP id je15-20020a05600c1f8f00b00406849ff3cdmr1512482wmb.29.1697544350581; Tue, 17 Oct 2023 05:05:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:49 -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 v3 65/73] pinctrl: cirrus: drop the wrapper around pinctrl_gpio_direction_input() Date: Tue, 17 Oct 2023 14:04:23 +0200 Message-Id: <20231017120431.68847-66-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-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 pete.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 (pete.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:10:03 -0700 (PDT) From: Bartosz Golaszewski pinctrl_gpio_direction_input() now has the same signature as the wrapper around it so we can drop them. Signed-off-by: Bartosz Golaszewski --- drivers/pinctrl/cirrus/pinctrl-cs42l43.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/pinctrl/cirrus/pinctrl-cs42l43.c b/drivers/pinctrl/cirrus/pinctrl-cs42l43.c index 1ba89cf279fb..012b0a3bad5a 100644 --- a/drivers/pinctrl/cirrus/pinctrl-cs42l43.c +++ b/drivers/pinctrl/cirrus/pinctrl-cs42l43.c @@ -506,11 +506,6 @@ static void cs42l43_gpio_set(struct gpio_chip *chip, unsigned int offset, int va pm_runtime_put(priv->dev); } -static int cs42l43_gpio_direction_in(struct gpio_chip *chip, unsigned int offset) -{ - return pinctrl_gpio_direction_input(chip, offset); -} - static int cs42l43_gpio_direction_out(struct gpio_chip *chip, unsigned int offset, int value) { @@ -551,7 +546,7 @@ static int cs42l43_pin_probe(struct platform_device *pdev) priv->gpio_chip.request = gpiochip_generic_request; priv->gpio_chip.free = gpiochip_generic_free; - priv->gpio_chip.direction_input = cs42l43_gpio_direction_in; + priv->gpio_chip.direction_input = pinctrl_gpio_direction_input; priv->gpio_chip.direction_output = cs42l43_gpio_direction_out; priv->gpio_chip.add_pin_ranges = cs42l43_gpio_add_pin_ranges; priv->gpio_chip.get = cs42l43_gpio_get; -- 2.39.2