Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3109720rdg; Tue, 17 Oct 2023 05:09:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdwVL0WcszkOpHl7vD8BQakc8iLuI7NKWx3ZWj5wksvARmAntA0OSsiu6fnHf/YVaRQjhJ X-Received: by 2002:a17:90b:1d08:b0:269:a96:981a with SMTP id on8-20020a17090b1d0800b002690a96981amr2550947pjb.5.1697544544330; Tue, 17 Oct 2023 05:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544544; cv=none; d=google.com; s=arc-20160816; b=c5PyFnKqw9cvxEDX+TFBn3IBDllcbgz/XULdenZlsYCoLCjk/K2PdK+g3a71tOwHnY 8PBYMZrykmSvEj5InzqcFbX6ZIi16dOoMEzLraaLt+/8py5o2+Y8y05gCKe3y4OD4ENL l7ebyHBsQeLOI2ngBUnyqMJSHSUOgFFYEe8/b9pylDp5i3x6r4xablMYGbyyW11QIT9E cw1dJSa0c1DRzsfnqsIHHlGsKCcmE9psdK/fOFD83auK9g8E8332ZaP1+Mn5+XJhCu17 fWD3wfX4mfCcpyKU2q9/qbmP5+rEPUKy4HqUV9mSuRH0jk7UtQ+ALRP6YYzM5UfJ0ww/ urIQ== 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=U6y2fYAElMK3+9pk+W11zZcwrJV986RWR1hlU2SY+8Q=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=salz0T7VHH73Cu/0bOx3HmAu7wSuV7ad9SoYf+IkjktYMJgGkwTKLTBcxh7E6H3GD0 apxOWPt4U3zikXkTi0s02tvYMxi+d0q3VECCX2RBDubOReLsKBCLeiC/LYj61fPUczO2 q7es1devxk7V1qhOUWg523GwQshAfug7mFGleCOymMDxZXVxgC2Qlq8BOrWsr85MyGli rw6LmZf/68F77zKbqVZXb6fgInh4FkX19Js/ti4anUmmElQEl8zAGziI6PAb5bG46sX5 4rT1V2cz8PkrO7zsBjFK4afhpqeZ/aDUSOkR/OTVHKdjzm4pzThG0jpu8vh8O5f+d1xI oPsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=pHXetQdl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id c14-20020a17090a558e00b0027763f3e3c8si1507233pji.186.2023.10.17.05.09.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:09:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=pHXetQdl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id C405A80B81EB; Tue, 17 Oct 2023 05:09:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343685AbjJQMI6 (ORCPT + 99 others); Tue, 17 Oct 2023 08:08:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343703AbjJQMHq (ORCPT ); Tue, 17 Oct 2023 08:07:46 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F72E2711 for ; Tue, 17 Oct 2023 05:05:50 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2c53c5f7aaaso5720011fa.0 for ; Tue, 17 Oct 2023 05:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544349; x=1698149149; 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=U6y2fYAElMK3+9pk+W11zZcwrJV986RWR1hlU2SY+8Q=; b=pHXetQdlnqM/PILM0DQmHEJEQIT4tt2KAEVKB27+l378t4fVg4MST6JUl7LN8WkZ3W AmRHS0g4n/sd02aWw0kFBgCXG89DImfWL2Gz+O++7bdZ+30Jp0fz4Yrh3OGt6emXBM+O a8QDY9Kl4/Z7C/DqOhXb34FvL9F2aK7xEcEKCttQQlRJK6Obfsop1ERXJERnRO0Bsuaz b6rRQjxqqRD7uxDCVHhwU7c61BR8WM55Rd6fsoruHT9kXpM+nWagQ4swB8UEfaoqwN6m qH7/CHcPRbyJtHJCIz7atJm63RtHCh2o7EcmJmPfo30sg7+VR2njAaaaLtHFa/JaYMdZ n/Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544349; x=1698149149; 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=U6y2fYAElMK3+9pk+W11zZcwrJV986RWR1hlU2SY+8Q=; b=gXtaKDyQ/duyr59aml9AwW2Z7y44OKBJaKSvm3P3A7hx4H/i6Mga+8eiV0OLOsDNXw F6TzWtHAqfuhuCjnJGfh651uAeh4BLdJ9/n8Xu8i2V6P7B7m6A/leluVFTCD5r39reZ9 8ce5IP1EyaUtMEOkf3ymnBS4iu6+cPZGMB0FyZZZtxTzjhyJOIAsR6h8MGWzcb1VEvAE ptRFC1MSMXRBzaxWMUs4KOd4+M0INWEeWxJ85rSpxFVT0LKOHzwBNAsq9L57Tpi3Bhrt Nf4+eLLd3WdC0pSeIQHyumu1ad+41TQcfvWcHAouMwQjM9WVspev1QTODCmBxLRz6DLF 0TnQ== X-Gm-Message-State: AOJu0YyfXRf5vwG5vBxK72c0ExH2GJmdvbVpo50PaYRcr7T2gVmtPdgK aXn6q/4jcjh33Q6LlpwiM37vE7P34n9XbNYiiI8= X-Received: by 2002:a2e:a58c:0:b0:2c5:8a4:9e6f with SMTP id m12-20020a2ea58c000000b002c508a49e6fmr1501787ljp.37.1697544348815; Tue, 17 Oct 2023 05:05:48 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:48 -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 63/73] pinctrl: mediatek: moore: drop the wrappers around pinctrl_gpio_direction_input() Date: Tue, 17 Oct 2023 14:04:21 +0200 Message-Id: <20231017120431.68847-64-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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:09:03 -0700 (PDT) From: Bartosz Golaszewski pinctrl_gpio_direction_input() now has the same signature as the wrappers around it so we can drop them. Signed-off-by: Bartosz Golaszewski --- drivers/pinctrl/mediatek/pinctrl-moore.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-moore.c b/drivers/pinctrl/mediatek/pinctrl-moore.c index c3f33f96f920..c3d59eddd994 100644 --- a/drivers/pinctrl/mediatek/pinctrl-moore.c +++ b/drivers/pinctrl/mediatek/pinctrl-moore.c @@ -510,11 +510,6 @@ static void mtk_gpio_set(struct gpio_chip *chip, unsigned int gpio, int value) mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_DO, !!value); } -static int mtk_gpio_direction_input(struct gpio_chip *chip, unsigned int gpio) -{ - return pinctrl_gpio_direction_input(chip, gpio); -} - static int mtk_gpio_direction_output(struct gpio_chip *chip, unsigned int gpio, int value) { @@ -569,7 +564,7 @@ static int mtk_build_gpiochip(struct mtk_pinctrl *hw) chip->parent = hw->dev; chip->request = gpiochip_generic_request; chip->free = gpiochip_generic_free; - chip->direction_input = mtk_gpio_direction_input; + chip->direction_input = pinctrl_gpio_direction_input; chip->direction_output = mtk_gpio_direction_output; chip->get = mtk_gpio_get; chip->set = mtk_gpio_set; -- 2.39.2