Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp774889rdg; Wed, 11 Oct 2023 05:22:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEbRXPsn2NS/rXb9TMDWYo4Mq1e7LSURUhFUyEbeBRkWIMTpWFW9MMWlSV1CCHdHZwCM6mC X-Received: by 2002:a17:90b:3907:b0:273:e255:2235 with SMTP id ob7-20020a17090b390700b00273e2552235mr15651100pjb.49.1697026952371; Wed, 11 Oct 2023 05:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697026952; cv=none; d=google.com; s=arc-20160816; b=AaXZh/jhGm7nrhCUUz1xVgNZBAj++9/Ib4V0TP6DVYuc7OvoqKLHk9zXym8O9D8iEG eXw5D22YRCSlLA9r4xjW6czlPKVQc6tTkUTSKRhPtJPfTv6e4FbyKt8JGv8YBlbGKJCf XbCpMtEEieAFy2M8n68jtQp3Hm/JZkh8S0+UrzAdZK1RN+hTpYAQy4CcWDUug0VDVJsP +hURKOXFJlEZIb0DZ0pOWdHY38N2kvtFIfxtnjbctkFKVxupLkkraK96jINofHqFNgnT DgVBRGKuB9x4xBLJTgyOaf5loNnw4UjZQVvxDujrN60YvjUzxWk9+wp9KDWmI7+Mx07m WvEw== 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=o1iLMtevXqv9Kk30l8xkOyL7j4m4nBnZ6GmTsolOeXI=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=lyFvxvUhd34ixHsjWuj8a+pz3I9KYYtk+2QMhKtCJebFYK/RMHhyCcuzLPJDTycNXo AFtcPvwpdWZPSHlNHpE7dODv+iS/4J2szXYMi1qXZNm19VvESJbVkP/+scbG12VWqOfV UW5sXH2BRE8Qq/LAp/BGLZp1uhR4wCaXjQuGuBTG3DZf/2F1qN0jZ14juNeroal8Oo6e diatmuwAZ5zgNS7wshfzA3mCwKDR5uKJuvSd9yqIHBv65Zj0r/zOB3dGtrryj8+xsfKU +XSVg1pYrvxaNFjW+HOx9ClAT4x7IkR+dmV8ABl5h3/KQwDkGk4jAroD08eMNnK9qe+1 pFmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=anjzPtSQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i3-20020a17090a974300b00277624ffa82si2553570pjw.86.2023.10.11.05.22.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:22:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=anjzPtSQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 95AB181BEEBC; Wed, 11 Oct 2023 05:21:28 -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 S1346909AbjJKMVM (ORCPT + 99 others); Wed, 11 Oct 2023 08:21:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234998AbjJKMU3 (ORCPT ); Wed, 11 Oct 2023 08:20:29 -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 182621BCB for ; Wed, 11 Oct 2023 05:10:25 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4054496bde3so62408885e9.1 for ; Wed, 11 Oct 2023 05:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697026192; x=1697630992; 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=o1iLMtevXqv9Kk30l8xkOyL7j4m4nBnZ6GmTsolOeXI=; b=anjzPtSQkeB4UBRQhalEeL075Xa7BZm3sFIhbzZeLR8FV0htGQ2zrLrryDKhxAUgLr jyWxN6+g3xhhiTlWKyPJ+bx8AnTiTWnKmdvotJSbSKk6pPrecV7Ap1JzzFkU/WVKf0/9 6LlbWHQHfQWofGigU1974vaBiDZXmcdEYL2giaDciyl5WG0jaC9+2DeIW8QuzBWALuTy kXm9jAtSCLVJsshckF7La6DkK3LAQIVEb5nPxNcp4pdPHLIwqC3IpMCT5DW6g62thvio N2XaGbv3S9WRaou8NN+PXn/9szMu2hcMunTr/e1pQJtbQdsy1YdWxY1ZYHm3i9BXjgWs IsEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026192; x=1697630992; 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=o1iLMtevXqv9Kk30l8xkOyL7j4m4nBnZ6GmTsolOeXI=; b=CTf9gfQr/mp4XLDjsZ3pnNVqi8vnUOqmrSIx8eOji1ImFmNm8BlKyuIveHN9NZlY1c XPMVAHQqZis4u2bXdsP+mtMRj86dVaJ5ueCvDQUOaUZTXVgEkKDkDNGMw/GiXBLRuSPI zCeRUJM222La6m3akHULxGrUiAY8tjXxFCCKcEnR3ugE7+PmoIZuqfGaW7jsbQb7utH3 /lmrZnc5m/kXDzsAk6exwl6R/elbhYZJ3DJ2RXy+mVkbwLoGXn8Ug2wbz1FGxu++Yap7 xTC8f5xYKjV6vp3cpbyOQ639HFJH5FtiSe8zxu9ZtHpp6xZ5Dzn6OcBjg2t1cmPoMjil FxWw== X-Gm-Message-State: AOJu0YwSIiUtAGKKVKzvsx4yUXjh7Hgi6dFBl/C5bcixgezX77VDBjq2 Ajpgalbeb01ZlVf0GBdsHu/fTw== X-Received: by 2002:adf:cc81:0:b0:321:5971:23a5 with SMTP id p1-20020adfcc81000000b00321597123a5mr18409071wrj.20.1697026192467; Wed, 11 Oct 2023 05:09:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:09:52 -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 49/62] pinctrl: ingenic: drop the wrapper around pinctrl_gpio_direction_input() Date: Wed, 11 Oct 2023 14:08:17 +0200 Message-Id: <20231011120830.49324-50-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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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]); Wed, 11 Oct 2023 05:21:28 -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/pinctrl-ingenic.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/pinctrl/pinctrl-ingenic.c b/drivers/pinctrl/pinctrl-ingenic.c index ca58c9db5c2c..ee718f6e2556 100644 --- a/drivers/pinctrl/pinctrl-ingenic.c +++ b/drivers/pinctrl/pinctrl-ingenic.c @@ -3560,12 +3560,6 @@ static int ingenic_gpio_get(struct gpio_chip *gc, unsigned int offset) return (int) ingenic_gpio_get_value(jzgc, offset); } -static int ingenic_gpio_direction_input(struct gpio_chip *gc, - unsigned int offset) -{ - return pinctrl_gpio_direction_input(gc, offset); -} - static int ingenic_gpio_direction_output(struct gpio_chip *gc, unsigned int offset, int value) { @@ -3680,7 +3674,7 @@ static int ingenic_gpio_irq_request(struct irq_data *data) irq_hw_number_t irq = irqd_to_hwirq(data); int ret; - ret = ingenic_gpio_direction_input(gpio_chip, irq); + ret = pinctrl_gpio_direction_input(gpio_chip, irq); if (ret) return ret; @@ -4197,7 +4191,7 @@ static int __init ingenic_gpio_probe(struct ingenic_pinctrl *jzpc, jzgc->gc.set = ingenic_gpio_set; jzgc->gc.get = ingenic_gpio_get; - jzgc->gc.direction_input = ingenic_gpio_direction_input; + jzgc->gc.direction_input = pinctrl_gpio_direction_input; jzgc->gc.direction_output = ingenic_gpio_direction_output; jzgc->gc.get_direction = ingenic_gpio_get_direction; jzgc->gc.request = gpiochip_generic_request; -- 2.39.2