Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp768504rdg; Wed, 11 Oct 2023 05:12:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFbuYzI88tNl9yBa2Cj1ROmBVnolFZaSOHv4YbcEKSafc2G7kesPa40umT6a9BceG58G4jp X-Received: by 2002:a05:6a00:1592:b0:68f:cf6f:e212 with SMTP id u18-20020a056a00159200b0068fcf6fe212mr20148324pfk.20.1697026358450; Wed, 11 Oct 2023 05:12:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026358; cv=none; d=google.com; s=arc-20160816; b=kgGY7AQ+cZhgOP6g7gkJx1r8JDwufSPoPH/itN7cUsI8hggPDZRiPE7rAyuTityDHD O5MqBYFSRal+NcSYjSuoSL9LOd+bYuCm+XN9Mz+pm4ZSxE5dV9Cvahhl/0S/6Qvj9pUM x+o+TakOBoP4ibogyY5XM9FGp9PufsChdoq6NIRdxgFLAX6EFdkWKHSfLsAF93Ay0txq EjKKoekzoBB8kVIXA34aNaEs5zfZzMnmep5qnsj9s4JfdjiDLlwzP88a6hSswdOw2gMl T625zlJxVW5ctjA+JmcLsGyMEh/DIm97poFk3aTfakXUqSNnrO8A5uCb91qMeNzZ7Ge4 yEOQ== 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=8hYD07DORFpnS7uYBoHZE2h5e1OIf1dxiUrdwCdcwh8=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=iKsWzbyhOmA/XuiBDe08lf6Uzi3EDSvm5W1yFiDhDWyt+GkI4hwsnTmSUp7opudzZg tbjRaZsMvYjFxYhwx972T8sXaXNnvdkgPOQXh4QK1NtQ7xL/medQkwVNWjSxxzm+Jqao Tvm72fGFR24Tj2QHOIuCLl+uWa8EdXiFK8NsjS3a2RbDFIIuyrimjebfGuqHfQb9wka9 M6wyWpKxy+j2l/x7GaWblz3i9ui01NhZZ0unm9ySSaZHbsLpEjtrtvPTIi/rChdqdhBr 6K8V4aZVtNhrsXkniKRXKsyzpD26bs9KB6/CM6E5+NMLqhfMlTQp+6ZDdvnGrdUUFaxb ehRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=nFV1NNCX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id bd10-20020a056a00278a00b0068fa57d2486si11725350pfb.125.2023.10.11.05.12.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:12:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=nFV1NNCX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 0C9D58135614; Wed, 11 Oct 2023 05:12:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234788AbjJKMMU (ORCPT + 99 others); Wed, 11 Oct 2023 08:12:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234879AbjJKMMR (ORCPT ); Wed, 11 Oct 2023 08:12:17 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F44D1BFF for ; Wed, 11 Oct 2023 05:10:35 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40537481094so63321825e9.0 for ; Wed, 11 Oct 2023 05:10:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026199; x=1697630999; 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=8hYD07DORFpnS7uYBoHZE2h5e1OIf1dxiUrdwCdcwh8=; b=nFV1NNCXTRV1zYzxZI/tjJNRUIfP2G6CoqyzO+tNyfDp3lkJxE1NtvufjXEPSrgi6Z 1CSKXj7TZgxPILIT9GQTqIwRdB8atiA/3XrGtIxMASySOGz9vxhCRnv0934TlUQMQry9 YSyJ3oDaqoeo6BBybDdaUvQdSdJ4YAwkgIBw/Lfp2wjXHUsIuksxMvGJZXjDOX8T0HWA 1+DU+9QZ0p9JD9lW0S8oMqmAN6JNwVyVIkjyezroPzjfU0q4k4QcRenIeiNno3O4Ujns iECRqSORBwYx5lOrNuX6J4zghcHRd/xYZuPXUTExVMa6kXaYTfarSJqSkRjuZK9u0nyM qpjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026199; x=1697630999; 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=8hYD07DORFpnS7uYBoHZE2h5e1OIf1dxiUrdwCdcwh8=; b=pBm0LVpcRxWbNS+p755buzZDeSR2zbRq73Qim5wAgPmiQirP1TVYCNK75vPSpSx0y1 xEMUJO248ceRCOYQxmxZKLpTEIB/FWwUj+PyZXwlQVwfO0qywUfOZ2zz8IxOp7rCBJwt iNYWrbeegbZ33cnTqnQlhFs3VCn2Lx87WcZg9dlxfxgRf3u+XQpMpud9KAQWeLvc+ORD mzKulprvBZlVjSqNhpKVecUlKRW0Bd8lX9oy7XfjLSkS2VvVIBQZiCoSCouMilIcii0j a2RQPf8n/iWIWl98vnMW56mpJaoCuEDxBI9Sx3BdmgvXJBh7AX5KDXChZAF1YlH6oZlG 0Yug== X-Gm-Message-State: AOJu0Ywmzrle+GMXaJIr2SSvAb8ZNCn9i/ql0E3NxQAIFmpZoz5Vqwmt l4C6aSUWebM5jTe/qLh6lc1yYA== X-Received: by 2002:a05:600c:210b:b0:406:548e:bd51 with SMTP id u11-20020a05600c210b00b00406548ebd51mr17375258wml.26.1697026199541; Wed, 11 Oct 2023 05:09:59 -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.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:59 -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 57/62] pinctrl: ocelot: drop the wrapper around pinctrl_gpio_direction_input() Date: Wed, 11 Oct 2023 14:08:25 +0200 Message-Id: <20231011120830.49324-58-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 agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:12:35 -0700 (PDT) X-Spam-Level: ** 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/pinctrl-ocelot.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/pinctrl/pinctrl-ocelot.c b/drivers/pinctrl/pinctrl-ocelot.c index 96b4e9fceb78..52aadd6d72a8 100644 --- a/drivers/pinctrl/pinctrl-ocelot.c +++ b/drivers/pinctrl/pinctrl-ocelot.c @@ -1776,12 +1776,6 @@ static int ocelot_gpio_get_direction(struct gpio_chip *chip, return GPIO_LINE_DIRECTION_IN; } -static int ocelot_gpio_direction_input(struct gpio_chip *chip, - unsigned int offset) -{ - return pinctrl_gpio_direction_input(chip, offset); -} - static int ocelot_gpio_direction_output(struct gpio_chip *chip, unsigned int offset, int value) { @@ -1804,7 +1798,7 @@ static const struct gpio_chip ocelot_gpiolib_chip = { .set = ocelot_gpio_set, .get = ocelot_gpio_get, .get_direction = ocelot_gpio_get_direction, - .direction_input = ocelot_gpio_direction_input, + .direction_input = pinctrl_gpio_direction_input, .direction_output = ocelot_gpio_direction_output, .owner = THIS_MODULE, }; -- 2.39.2