From patchwork Fri Jan 15 14:04:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1427055 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=VX7pOqjo; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DHNJz0h08z9t9b for ; Sat, 16 Jan 2021 01:06:33 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 62F2A82677; Fri, 15 Jan 2021 15:05:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="VX7pOqjo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6A5CE82676; Fri, 15 Jan 2021 15:05:39 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A9D8B825D0 for ; Fri, 15 Jan 2021 15:05:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd29.google.com with SMTP id q2so16618403iow.13 for ; Fri, 15 Jan 2021 06:05:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AYOozq6T+DETzTwdgh2ZsZK0m+Tbal4DalC42FZJi0I=; b=VX7pOqjoQNfTEIEtjKn1KDecIcLD3UghqHwG01qgt96I60wxT2/0Paf83jqWmMl+R9 sNIwsGNI/HjUlpezbQP0zxB000W84ICnFaXEppi/6sewg3pJ3PV8NqQxUyqyQPOJzXDJ TmEpwxG6oLgJ56Vn+DPS+oHsSlkt+q7xXrkcg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AYOozq6T+DETzTwdgh2ZsZK0m+Tbal4DalC42FZJi0I=; b=RZZiCpIyq4S28PN/Xn9OIxM6U8kppBiPHq/lEG1/lGx0+4rPwsN+9cS32GgG8D0zG2 hh48N1KlMfBEDKLuughbz5e/vtXB8dUWBoHPD+lMOby2tj36y6fOHsyU/hrsFNb0BJkX B+DSXxeMEGYNFUdQciHCKu/Dpnb3jYMR1c2+FaJzmjdcGjgqf2BZBnJzagn/qcii9r3k nUwECT7aFKAuF70kasnZfyx+59mV/AGGdaJfIJMsOIKzC41ZhDMlBP7Mh2iZbwb8APET qj2U8rQmbpK+hYy+JigYI/EunjHrSz/+x05+GvHJAQ6qnN36xQQKC7ueJcTG9sFxTFMF I/eA== X-Gm-Message-State: AOAM533bdXmIeoOO7dVJWKw17bxBji6LyhzO7I6OcQwR4cPO73b2wElO v0SHdbQVZiDpUbRfW5uat9/YLseaRangaL6y X-Google-Smtp-Source: ABdhPJwk4t7MxFjB7BzVFwMasR82z8fq+S7Bff73zKsleSrPzuNa4rT5A5o3ToWvI3PX4ItopfLZXA== X-Received: by 2002:a92:9144:: with SMTP id t65mr10866770ild.175.1610719529807; Fri, 15 Jan 2021 06:05:29 -0800 (PST) Received: from localhost.localdomain (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id 1sm5664843ilv.37.2021.01.15.06.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 06:05:29 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Patrick Delaunay , Tom Rini , Simon Glass , Dario Binacchi , Heiko Schocher , Jean-Jacques Hiblot , Patrick Delaunay , Pratyush Yadav , Wolfgang Wallner Subject: [PATCH 05/15] gpio: Drop dm_gpio_set_dir() Date: Fri, 15 Jan 2021 07:04:50 -0700 Message-Id: <20210115140500.846307-6-sjg@chromium.org> X-Mailer: git-send-email 2.30.0.284.gd98b1dd5eaa7-goog In-Reply-To: <20210115140500.846307-1-sjg@chromium.org> References: <20210115140500.846307-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean This function is not used. Drop it. Signed-off-by: Simon Glass Reviewed-by: Patrick Delaunay --- drivers/gpio/gpio-uclass.c | 11 ----------- include/asm-generic/gpio.h | 11 ----------- 2 files changed, 22 deletions(-) diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index 864a9003245..aa0e3852122 100644 --- a/drivers/gpio/gpio-uclass.c +++ b/drivers/gpio/gpio-uclass.c @@ -671,17 +671,6 @@ int dm_gpio_set_dir_flags(struct gpio_desc *desc, ulong flags) return ret; } -int dm_gpio_set_dir(struct gpio_desc *desc) -{ - int ret; - - ret = check_reserved(desc, "set_dir"); - if (ret) - return ret; - - return _dm_gpio_update_flags(desc, desc->flags); -} - int dm_gpio_get_flags(struct gpio_desc *desc, ulong *flagsp) { struct udevice *dev = desc->dev; diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index 5ecb73c138d..30ff5feb160 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h @@ -659,17 +659,6 @@ int dm_gpio_get_value(const struct gpio_desc *desc); int dm_gpio_set_value(const struct gpio_desc *desc, int value); -/** - * dm_gpio_set_dir() - Set the direction for a GPIO - * - * This sets up the direction according to the GPIO flags: desc->flags. - * - * @desc: GPIO description containing device, offset and flags, - * previously returned by gpio_request_by_name() - * @return 0 if OK, -ve on error - */ -int dm_gpio_set_dir(struct gpio_desc *desc); - /** * dm_gpio_set_dir_flags() - Set direction using description and added flags *