From patchwork Sun Jun 30 07:37:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 255870 X-Patchwork-Delegate: albert.aribaud@free.fr Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 39D422C0299 for ; Sun, 30 Jun 2013 17:38:15 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 662CD4A050; Sun, 30 Jun 2013 09:38:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bP0SdMBiz2h9; Sun, 30 Jun 2013 09:38:05 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 05CAF4A047; Sun, 30 Jun 2013 09:38:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9D1774A047 for ; Sun, 30 Jun 2013 09:37:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JGCHcsAxY6Md for ; Sun, 30 Jun 2013 09:37:51 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by theia.denx.de (Postfix) with ESMTPS id 6EA794A046 for ; Sun, 30 Jun 2013 09:37:41 +0200 (CEST) Received: by mail-pa0-f48.google.com with SMTP id kp12so3882947pab.7 for ; Sun, 30 Jun 2013 00:37:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:subject:from:to:cc:date:content-type:x-mailer :mime-version:content-transfer-encoding:x-gm-message-state; bh=CldvvNMvwWaJEuZCW7V9QcEyNP2uy3h/ZO7qj3xW+Io=; b=TOta261V98BUQCyHUsF1IH/hTCPvjUEv8URrjkzgpAH0t0pia7d83sJRX+0G+tVvPj LiCqfVjKfZYQtR8V4S5mfL7akmvYyeYrizyNHKwysp0mYmQQfyYCoGWE5SFUci80fV4k mCrYYaaTzzbuJbHfn0yA7BKJWQxoEh7KXN03+UCXCaXPgYu0mTlUXtpirk5r/s5shYCU BVj/H8Qy7D5vBeH09maQrcWKAY7zM3KXD4vq8fkwMyNMtVDmFOhl9e0i4jBtVG6vbpnx LMYeiRDYZIzXqyJ3Epq73tIEK6wWTHWcfuuYCv9lfslODI77wLJ78FsFe8miuh0+p3tI pTjQ== X-Received: by 10.68.175.228 with SMTP id cd4mr18819451pbc.40.1372577857164; Sun, 30 Jun 2013 00:37:37 -0700 (PDT) Received: from [192.168.0.100] (114-39-105-208.dynamic.hinet.net. [114.39.105.208]) by mx.google.com with ESMTPSA id ue9sm17557383pab.7.2013.06.30.00.37.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 30 Jun 2013 00:37:36 -0700 (PDT) Message-ID: <1372577851.3971.0.camel@phoenix> From: Axel Lin To: Stefan Roese Date: Sun, 30 Jun 2013 15:37:31 +0800 X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 X-Gm-Message-State: ALoCoQkLBaa7kLves8pxfg52qAci16m45SkWdSehBf+FhPo3k6sferosuC0G/Ty+ECCNJvQlDLuT Cc: Vasut , Marek@theia.denx.de, u-boot@lists.denx.de, Tom Rini Subject: [U-Boot] [PATCH] gpio: spear_gpio: Remove unused gpio_toggle_value() function X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de There is no user calling this function, thus remove it. Signed-off-by: Axel Lin --- drivers/gpio/spear_gpio.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpio/spear_gpio.c b/drivers/gpio/spear_gpio.c index d3c728e..5b5521e 100644 --- a/drivers/gpio/spear_gpio.c +++ b/drivers/gpio/spear_gpio.c @@ -80,11 +80,6 @@ int gpio_free(unsigned gpio) return 0; } -void gpio_toggle_value(unsigned gpio) -{ - gpio_set_value(gpio, !gpio_get_value(gpio)); -} - int gpio_direction_input(unsigned gpio) { return gpio_direction(gpio, GPIO_DIRECTION_IN);