Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3118112rdg; Tue, 17 Oct 2023 05:23:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEbqey/zq5C8cO9NY6cs3+eWjB1MQxPpEOKJM2vVvbrlsz9a42C2QcM0Hzl9I7/VOobVoca X-Received: by 2002:a05:6830:114:b0:6bd:c8c2:b70f with SMTP id i20-20020a056830011400b006bdc8c2b70fmr1957023otp.34.1697545388777; Tue, 17 Oct 2023 05:23:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697545388; cv=none; d=google.com; s=arc-20160816; b=o+KcTZEI7UoCyvGI4sNonYrtd2l94cb50aYBQvRyX/xCaidoU3uU/3xI0OX875XKUq EeQjYSWkc6v6GF/BTWhE+vZpuPvHUSTlbvyS+CQJqOwNdmwH+45QwoeHJ9gPHxP2RIhB yc7XfhVtPMWqFSutYw9k5YDNha/T82OBE0BwdUaq2dz4CA6L2ELGEPdjY3gmJVKvQOf5 5ZzagQkv1rok7JPFYmt5KyhwKb5VWsc8ZN8jP7bdJkd++SNhjmwxfOK30EcyGMXkD/6C sA8vNu18N0GYFEU66UDBdjIMQouhcjXmBI3S46XlwiWOcshNVLHenrNdc1LRj7D4AgqJ ik/g== 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=Sp1LIUfvDYE1l/aL1VLqxtchd//6yPiTcnPiXQzQOTs=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=Q7aGm+FW/VMjdmMufi6jrZHchW97NfvQa4CH1tqbUmbkfG84aYcHXMt7TxdUcRcrQ8 wTIZSI/e0wl26sSps4YHGAxEcX8Orq1b654gE6NQS4LtEFaT4tqZE6r9YnQsRjjdDz6N RRCEmJbqh68NyyDhbEhGi2TgpEqnwgejqsDj7Uyb2s1NNOBJQTXl8cgBINe1V7fYxJpx kQAEA32ifFOiABjfxKGjs7qIumsfQjEeIRw2Lj/6+dmtwDe2tvbHqMys2QXw1yZD2yhu l+koqYNpljVQn03n63DV5ipXxKkUESTDNADl/LlP0GQ2IsvSSS9BI8WveBccy+0wYyif 4jZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=rUhTnV0D; 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 j10-20020a63cf0a000000b005b503f56f03si1634192pgg.827.2023.10.17.05.23.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:23:08 -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=rUhTnV0D; 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 CEC51801BFE6; Tue, 17 Oct 2023 05:23:07 -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 S235016AbjJQMXE (ORCPT + 99 others); Tue, 17 Oct 2023 08:23:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233640AbjJQMWr (ORCPT ); Tue, 17 Oct 2023 08:22:47 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C28C0112 for ; Tue, 17 Oct 2023 05:05:29 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-407c3adef8eso4127315e9.2 for ; Tue, 17 Oct 2023 05:05:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544326; x=1698149126; 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=Sp1LIUfvDYE1l/aL1VLqxtchd//6yPiTcnPiXQzQOTs=; b=rUhTnV0DudQiYo2r4dgVuPQzHWWsBnd1nkljDIdFDe2mUrukjHBUKEWiUc81v6gwLK CNu+J1Of4hPzTMf7lhT+SMOqa/qsgb+MNUvSey4o+rpF6nOcTNykImFDmU+avmS5ca5m y9bRe2nocQr02oqPe2JjY26hNOiYQfr+1BK2Qhl2zKF4MmVNV7xnUBZvv5/Qx3hApGwV GSNFtCX2yEnMgkxlsuLmmf8TmM1LMM1B2mBw30q95mArY/pQqHpdFgC2WnKpUIxnsxzb 0ptvftZXZqdhbGDjuIdqYMBiF/2XTJ/6uBa3L6rAgOlG2qh5Num6p4DQmBI4gxhQaTI4 +tVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544326; x=1698149126; 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=Sp1LIUfvDYE1l/aL1VLqxtchd//6yPiTcnPiXQzQOTs=; b=PEz3/u+iE/xyGlmADbJ1fJ0SPphiVA1tyg0eP70O6S800QIVlYczCNDfZI/ryQ4ezv hcBlqyMoWIt9ZqB5Wsj/o0SOuvDWoWyEQ0MahXnoDoqDQzlunC8iuXEpa/Eox+sm4Avn ODdheTasXTcS8NVH+lA/qr5UUkRJ+Fty+FRjt8VNKp1wAmh1tHZDdR7vIzSM5j4yC/0f PuBLXEhutDJoRZ4Gu5D32wSVcrKgTvQBvMFY0NfbKXftY92bNjMKIxc1bvZ03RrChdal rLQHncBwiQjcxzdPPl5AqbiMz0W5I4ZyOfpQSsdS6imptvyYN/fPhAExC1vybnnWBWhf ctOA== X-Gm-Message-State: AOJu0YynfwcscIrZLvUPDyhNyk2mBcjfDPCLRcya6Uv+1Hpyj0Mwwp4H x+HihNQ5q2mXN4Qo2dzmYeeE4A== X-Received: by 2002:a05:600c:a48:b0:405:3d41:5646 with SMTP id c8-20020a05600c0a4800b004053d415646mr1554434wmq.2.1697544325925; Tue, 17 Oct 2023 05:05:25 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:25 -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 39/73] pinctrl: remove pinctrl_gpio_direction_input() Date: Tue, 17 Oct 2023 14:03:57 +0200 Message-Id: <20231017120431.68847-40-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.0 required=5.0 tests=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]); Tue, 17 Oct 2023 05:23:07 -0700 (PDT) From: Bartosz Golaszewski There are no more users of pinctrl_gpio_direction_input() so remove it. Signed-off-by: Bartosz Golaszewski --- drivers/pinctrl/core.c | 9 +-------- include/linux/pinctrl/consumer.h | 6 ------ 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index 5a1414bfeacc..80f565aac707 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -873,13 +873,6 @@ static int pinctrl_gpio_direction(unsigned gpio, bool input) return ret; } -/* This function is deprecated and will be removed. Don't use. */ -int pinctrl_gpio_direction_input(unsigned gpio) -{ - return pinctrl_gpio_direction(gpio, true); -} -EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_input); - /** * pinctrl_gpio_direction_input_new() - request a GPIO pin to go into input mode * @gc: GPIO chip structure from the GPIO subsystem @@ -891,7 +884,7 @@ EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_input); */ int pinctrl_gpio_direction_input_new(struct gpio_chip *gc, unsigned int offset) { - return pinctrl_gpio_direction_input(gc->base + offset); + return pinctrl_gpio_direction(gc->base + offset, true); } EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_input_new); diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h index 90b2f0b78c4b..249bb28a52d6 100644 --- a/include/linux/pinctrl/consumer.h +++ b/include/linux/pinctrl/consumer.h @@ -29,7 +29,6 @@ struct pinctrl_state; bool pinctrl_gpio_can_use_line_new(struct gpio_chip *gc, unsigned int offset); int pinctrl_gpio_request_new(struct gpio_chip *gc, unsigned int offset); void pinctrl_gpio_free_new(struct gpio_chip *gc, unsigned int offset); -int pinctrl_gpio_direction_input(unsigned gpio); int pinctrl_gpio_direction_input_new(struct gpio_chip *gc, unsigned int offset); int pinctrl_gpio_direction_output(unsigned gpio); @@ -87,11 +86,6 @@ pinctrl_gpio_free_new(struct gpio_chip *gc, unsigned int offset) { } -static inline int pinctrl_gpio_direction_input(unsigned gpio) -{ - return 0; -} - static inline int pinctrl_gpio_direction_input_new(struct gpio_chip *gc, unsigned int offset) { -- 2.39.2