From: Simon Glass Date: Thu, 12 Jun 2014 05:29:47 +0000 (-0600) Subject: dm: Use case-insensitive comparison for GPIO banks X-Git-Tag: v2025.01-rc5-pxa1908~15148^2~8 X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=939cda5bf06205971c1e6849032144454017f200;p=u-boot.git dm: Use case-insensitive comparison for GPIO banks 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 --- diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index fa2c2fb7c4..f1bbc58796 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)