Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3116778rdg; Tue, 17 Oct 2023 05:20:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENJDZm8GkK9NlGDBAuOAA0kamRZfmLs+4OvK4i6URCOO63fH4LJkAPt9x82ueRFN6Ss6aH X-Received: by 2002:a17:903:308a:b0:1c4:13cd:b85f with SMTP id u10-20020a170903308a00b001c413cdb85fmr1949295plc.5.1697545250872; Tue, 17 Oct 2023 05:20:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697545250; cv=none; d=google.com; s=arc-20160816; b=QoDE+atOQyi9SUUDMz1c47MQVtwKTYbzMQ5e2vw0ivQ9Qgt+ArZ2caD9b1zVfnG2Va s1Xya1kmfDjKZyFCVQ8zdIOepNrUQ8Aobey0fCbsoN9XFPlqQEBX93ywixabIHNDVpGS qaxHAKRQCuUAf2wWq66ltuHCPN3F8lm4KpwuWkALHV81cnW+greWPpMvefgoTTlZpZ6c 8li3MZpCF4JTp0AEKHzXqMa5NhpQl/S649A94O9jcPEEYRB+0lBgSqE1nrYObx9fHcrR MepuTJLDGqR/wS6/UHNLWGOYKsaU2Ka4w80HAqhmkluH0K1QsRi6RGn27zE4Hfxhfsy2 tUuw== 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=I6cZJ9iOvjAsdg8L9d8ZBjfJOuY8giQz9BcQIlxiHnc=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=PFEJFZ+o0VH4MhZIaRN9yecx6cqaK95RYWbvYtsfavfis6vDT3xPnsXbscRrlc4vx5 /Zbil46eczkHVL22r5LIkrQ1P0qiJUqAFS13TQsXxZ51t0cNniXQjETpE4BHwSFlBdBy LtVYZbcbnKOMSA+SmGGBjvRyIKh8pXev20l+rDGfOSjGWtWDqcbdCd29sSsEmvVAl649 G6QNx4M3ZJxdhKM7+uVKlXNb2EBZmpaOvF7G50eJpCwECZMtOBxmhidM7GkSe/khh6Ew mm0Gab++3M7VSjVc5w7xFG2iAvPdtaIJiNiKVWAC7osEtJAV4q6n4jrdbGdb6PgUHVvD CLdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=IrEtUnYz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id c5-20020a170902c1c500b001c60c5726absi1659578plc.39.2023.10.17.05.20.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:20:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=IrEtUnYz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 51815804A9E8; Tue, 17 Oct 2023 05:20:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234346AbjJQMU2 (ORCPT + 99 others); Tue, 17 Oct 2023 08:20:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235032AbjJQMUH (ORCPT ); Tue, 17 Oct 2023 08:20:07 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 232281BF5 for ; Tue, 17 Oct 2023 05:05:30 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2bb9a063f26so70228851fa.2 for ; Tue, 17 Oct 2023 05:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697544327; x=1698149127; 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=I6cZJ9iOvjAsdg8L9d8ZBjfJOuY8giQz9BcQIlxiHnc=; b=IrEtUnYzM7bU4f67RzhcQwixNd1/M3ZvXP3tJSRGcLCO2NDoZB1yU4jbS9q4NJmI1n udYlHIHj+Abct2VVgJssgDAEyLL5CChp09Y6uYjFKLHFDXJunAfz+L6akd9EE9RE6uLz Po8Ww934yIUKK1IOItcSnLfujyfpwjsMIw1L6r/dFOND7/jXK59JyJsd2OYoXsqHex+/ rXWeM27RQ1tfd8hZULY3Hk0AliXKRtwvOgJLlIe5eW2dDQPCF00wfQuBbxvNviulCBO7 AGkF7YJ+W/8oo+HLp7hU1LnE56Sw6axCrQewfPbwxn9GgGtRVzAPitu03vLoUUl8b+U1 gjSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697544327; x=1698149127; 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=I6cZJ9iOvjAsdg8L9d8ZBjfJOuY8giQz9BcQIlxiHnc=; b=GXp5CbxYfjM7afbF9OcsJJ/feJcGXcRiP9CiRbES2m3huz/z9n9+0QFbuXSGGtFPKP sziKywsGdGKuwpjqdljMse1x6DqePMvILGR67It0qW694TV7JtM7qLfpaYzuzFoR/+OX rg1ZhtAKADk9GZAZoNmryZ0xR8P4Mo4UXfrG+e/z9BgcnkqLR/1JegS9c4QN//yTta0E EKT7NlrAvHKNm6d8HAlZCTRfOYGkPAbG1ltJHESk9uxzVxaxatSYMcTRBgw9v0GTWEXw OmREoTIlMw5qklQYrT1PPNCZ0pBez8qGFd9yhtFbKye2m3IE93aPO4Abm+lNp/UjWvkN aMgA== X-Gm-Message-State: AOJu0Ywceqlt+xHLDNuLeEVKGpzoKz67LKTmECutET8Sa99rg9c71tbw YUZiyi1EzblVBoDXXwA2KBuWOQ== X-Received: by 2002:a2e:6e17:0:b0:2c5:17ac:77f7 with SMTP id j23-20020a2e6e17000000b002c517ac77f7mr1411851ljc.1.1697544327089; Tue, 17 Oct 2023 05:05:27 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 05:05:26 -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 40/73] pinctrl: remove pinctrl_gpio_direction_output() Date: Tue, 17 Oct 2023 14:03:58 +0200 Message-Id: <20231017120431.68847-41-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 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 (groat.vger.email [0.0.0.0]); Tue, 17 Oct 2023 05:20:48 -0700 (PDT) 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 groat.vger.email From: Bartosz Golaszewski There are no more users of pinctrl_gpio_direction_output() 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 80f565aac707..0d66b3d5e685 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -888,13 +888,6 @@ int pinctrl_gpio_direction_input_new(struct gpio_chip *gc, unsigned int offset) } EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_input_new); -/* This function is deprecated and will be removed. Don't use. */ -int pinctrl_gpio_direction_output(unsigned gpio) -{ - return pinctrl_gpio_direction(gpio, false); -} -EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_output); - /** * pinctrl_gpio_direction_output_new() - request a GPIO pin to go into output * mode @@ -907,7 +900,7 @@ EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_output); */ int pinctrl_gpio_direction_output_new(struct gpio_chip *gc, unsigned int offset) { - return pinctrl_gpio_direction_output(gc->base + offset); + return pinctrl_gpio_direction(gc->base + offset, false); } EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_output_new); diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h index 249bb28a52d6..e25e9b0599ac 100644 --- a/include/linux/pinctrl/consumer.h +++ b/include/linux/pinctrl/consumer.h @@ -31,7 +31,6 @@ 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_new(struct gpio_chip *gc, unsigned int offset); -int pinctrl_gpio_direction_output(unsigned gpio); int pinctrl_gpio_direction_output_new(struct gpio_chip *gc, unsigned int offset); int pinctrl_gpio_set_config(unsigned gpio, unsigned long config); @@ -92,11 +91,6 @@ pinctrl_gpio_direction_input_new(struct gpio_chip *gc, unsigned int offset) return 0; } -static inline int pinctrl_gpio_direction_output(unsigned gpio) -{ - return 0; -} - static inline int pinctrl_gpio_direction_output_new(struct gpio_chip *gc, unsigned int offset) { -- 2.39.2