Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3109700rdg; Tue, 17 Oct 2023 05:09:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEDAlkawKAEN/3zGbbDQy8FCRknDO2A1Z6z7CCxpp05SHcNuDOp2RkCFq36Rp0KLEewPFP6 X-Received: by 2002:a17:902:e2c3:b0:1c5:ff18:98af with SMTP id l3-20020a170902e2c300b001c5ff1898afmr1739834plc.4.1697544543478; Tue, 17 Oct 2023 05:09:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697544543; cv=none; d=google.com; s=arc-20160816; b=Susri3ZAOSvp0v0GguvBlvnvdJWyAm737twp8uPD23f65N0qS19OxvZp2QLf7NwJ5a 8MyFPzmhpHXrX/VrqJfU010IYTeMsYOdNqw7VtLZuEn6vs5mGTVKY5wYSMbWDWKudsgy se6b6kNBhSPNZiFwp7DWnZG/gZf9kh1/zFDii5l8An87cVB0teI4mIgRdiVlqsj9CWRg dd78jtQy4KHTsAOilHQnPCzuntfdYwkfK7WW31k7ZtaWciycclX/WEx37RmseiqngR5r XCvpkL343VelmXl+46Xckl0rOBjkjjmM7JkAcAygMd8v05NWFP6w9CBfxAnjLsASWwxX 0BDQ== 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=UlzkIOQCjUnaLQIijso5Hp4dS0y/amt7GTYGhDxNGpk=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=xtgCawJ4nD6o9HUfXfd5Xf+7h/iC2SqRxgDlVnZMcSijpsHMdE+W9VM1/i78lTmpZq tmiaxtwasoYbcr/TYfpOBVGX2xS1lwhdIWzP5BXeppFNMpDVF5Hh82XX2KK7wygpJQS3 YUd9qnvHtjkU3OQcu6HX3HCZo3r4ZX0AvlDeiI3HohtF51WL3hvvPkf2yI6Jr3/qjxpF BTw0TOX38tT1J4j7lgespAH0LjgtMKUcwd92vWA6clfOmRGHnQ78Fw6fsmwkKdI+qI/k +o7CNtyERSV6XnZ4c5wgZxB1Zzbqu4GVktjffiwf3iamzltLoqX/J/eyRABkWT2YOeNy 2Hfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="vILeJu/S"; 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 c15-20020a170902d48f00b001c9b5d2c3fasi1644012plg.523.2023.10.17.05.09.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:09:03 -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="vILeJu/S"; 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 3CA9780CE7D4; Tue, 17 Oct 2023 05:09:00 -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 S234944AbjJQMIk (ORCPT + 99 others); Tue, 17 Oct 2023 08:08:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343675AbjJQMHj (ORCPT ); Tue, 17 Oct 2023 08:07:39 -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 9E0CF2713 for ; Tue, 17 Oct 2023 05:05:52 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-40572aeb73cso55558775e9.3 for ; Tue, 17 Oct 2023 05:05:51 -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=UlzkIOQCjUnaLQIijso5Hp4dS0y/amt7GTYGhDxNGpk=; b=vILeJu/SGi8uYS7u4bdsmG8n+Jt2CcWOXKNhBuN6LgS5+tB8xba+e8mkgpwF4P/B4t 6bwraGL59wnQoyCYAT3Fpo72ThdLRCmyCC5JoQ4bUIWMPkvXdFmq1P6qylCXLQQE7DSP tPDee4dG7B9jyaPG0NiK3f/ydnMLIk3VwEQRQzucdnQibu0MiFjr0EiPjWro4xmYgXvY l/+xv5S0NjwOh1x0CuavjlJvOiqsMWnBSHapiR7EEU6cHgyMNb4gPuAr/xw7NWJhBvOo HT/GATKUD5GpY1Cx4OcooAF3WLcG3AXZvvk92ZsAz2ZmqR7SueGc+4QiPQAoWd0QNWpQ qNQA== 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=UlzkIOQCjUnaLQIijso5Hp4dS0y/amt7GTYGhDxNGpk=; b=OzZKgKvNJON95Oe5KKnku6IvagA3D0GhhtdgqWtjbSp8wp3BJuerfTbYb/hIydLtdT fHqSIKkyuni2GyW8R/DigDOm6UzPK2J9wOPTPg7uwlwRmC48qommxczidpmwoVnBHHgI fzjwc5qx2OZAMaTaU+F2afdO44M013A0DRb4QwK6XDozQqOB32+tQbwdQCL2k90i2z3z fp+exXB+J7sLGlP3qHZVqA4TXMHll9G5Vf5HCXPz2QdAJMRrqb6Ffpsc2JlguGSAHd19 cVte9gtmnrSmhcoBxyhYLqMP6GwR2yjZhSs3c4JdYmXUStPsHr+pHCVr6iZREAJ4hR2J BbfA== X-Gm-Message-State: AOJu0YwXU2pJU/Bds7dcQSkVeyTp8s6u+pXMf+7dHFWJ3bxKHwh7W78B k+8ibgMvpAm8VFv6znPBAIPirA== X-Received: by 2002:a05:600c:1392:b0:406:513d:7373 with SMTP id u18-20020a05600c139200b00406513d7373mr1749009wmf.11.1697544349588; Tue, 17 Oct 2023 05:05:49 -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: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 64/73] pinctrl: mediatek: common: drop the wrappers around pinctrl_gpio_direction_input() Date: Tue, 17 Oct 2023 14:04:22 +0200 Message-Id: <20231017120431.68847-65-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 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:09:00 -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-mtk-common.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c index 41e9847e3085..e79d66a04194 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c @@ -808,12 +808,6 @@ static const struct pinmux_ops mtk_pmx_ops = { .gpio_request_enable = mtk_pmx_gpio_request_enable, }; -static int mtk_gpio_direction_input(struct gpio_chip *chip, - unsigned offset) -{ - return pinctrl_gpio_direction_input(chip, offset); -} - static int mtk_gpio_direction_output(struct gpio_chip *chip, unsigned offset, int value) { @@ -898,7 +892,7 @@ static const struct gpio_chip mtk_gpio_chip = { .request = gpiochip_generic_request, .free = gpiochip_generic_free, .get_direction = mtk_gpio_get_direction, - .direction_input = mtk_gpio_direction_input, + .direction_input = pinctrl_gpio_direction_input, .direction_output = mtk_gpio_direction_output, .get = mtk_gpio_get, .set = mtk_gpio_set, -- 2.39.2