From patchwork Thu Jun 12 05:29:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 359003 X-Patchwork-Delegate: trini@ti.com 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 F03F61400AB for ; Thu, 12 Jun 2014 15:32:01 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D9DFB4B8B8; Thu, 12 Jun 2014 07:31:47 +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 8qjZGcdWK6Dn; Thu, 12 Jun 2014 07:31:47 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 92A744B8CF; Thu, 12 Jun 2014 07:30:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8A88F4B8BA for ; Thu, 12 Jun 2014 07:30:41 +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 MDCP93airUcY for ; Thu, 12 Jun 2014 07:30:38 +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-pd0-f202.google.com (mail-pd0-f202.google.com [209.85.192.202]) by theia.denx.de (Postfix) with ESMTPS id 4BE4D4B8A9 for ; Thu, 12 Jun 2014 07:30:24 +0200 (CEST) Received: by mail-pd0-f202.google.com with SMTP id fp1so101364pdb.5 for ; Wed, 11 Jun 2014 22:30:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ryHRJ36SRAKg4YAYFBnXO6KLZyqR/HQb/Kbat6/bjVk=; b=G8xj/5hwNSL+gXCu7DQJqkxBkLJ1KZuz9MLu8EJr2SpDpUaLZvmeuWBRZCLBSZTmAA o/XlrAcJ9iXfa3rSP58oKBuE2q3PfBDRpA+rnP7UDH4568wXCipMYo3REflLR2Z2hhl7 38xgr2kIEcnBL2VM2CXJoYumOcxtURrcfT/tWuLwAeq1GoSYTrcABR7+qomne7tJMsv9 u8x/xvIPV6f3FyflLYEEqhWPtcOWuGMMcTbX4ubezRqmPITImjbtr5GAJh7GuXveLf8Y Rhc0ZSdLyk8CXV48Fz9PyJJVHNsY3RuU3UiEWjzfIlCdYZivqdiBV2OrF6j826RkWpp9 jCMQ== X-Gm-Message-State: ALoCoQl//U5QqCQ6A8IuV4G5CXgi1qzqNlq6usqWVLqyXdQfJ6vf+eHTa7/KgVyvQYs/IFiuRZmC X-Received: by 10.68.216.230 with SMTP id ot6mr1471868pbc.3.1402551023145; Wed, 11 Jun 2014 22:30:23 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id i65si1705892yhg.2.2014.06.11.22.30.23 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Jun 2014 22:30:23 -0700 (PDT) Received: from kaki.bld.corp.google.com (kaki.bld.corp.google.com [172.29.216.32]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id F306D31C95B; Wed, 11 Jun 2014 22:30:22 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id C26812207D9; Wed, 11 Jun 2014 23:30:22 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Wed, 11 Jun 2014 23:29:47 -0600 Message-Id: <1402550995-15963-8-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.0.0.526.g5318336 In-Reply-To: <1402550995-15963-1-git-send-email-sjg@chromium.org> References: <1402550995-15963-1-git-send-email-sjg@chromium.org> Subject: [U-Boot] [PATCH v6 07/15] dm: Use case-insensitive comparison for GPIO banks 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: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de We want 'N0' and 'n0' to mean the same thing, so ensure that case is not considered when naming GPIO banks. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - Add new patch to use case-insensitive comparison for GPIO banks drivers/gpio/gpio-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index fa2c2fb..f1bbc58 100644 --- a/drivers/gpio/gpio-uclass.c +++ b/drivers/gpio/gpio-uclass.c @@ -58,7 +58,7 @@ int gpio_lookup_name(const char *name, struct udevice **devp, uc_priv = dev->uclass_priv; len = uc_priv->bank_name ? strlen(uc_priv->bank_name) : 0; - if (!strncmp(name, uc_priv->bank_name, len)) { + if (!strncasecmp(name, uc_priv->bank_name, len)) { if (strict_strtoul(name + len, 10, &offset)) continue; if (devp)