diff options
author | Simon Glass <sjg@chromium.org> | 2014-06-11 23:29:47 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-06-20 11:55:39 -0600 |
commit | 939cda5bf06205971c1e6849032144454017f200 (patch) | |
tree | ae6b7a9b1610bacf08652d2a63df969777d33774 /drivers | |
parent | 2eb31b13d95e4cca8f21fe54e7b064b771a0383b (diff) | |
download | u-boot-imx-939cda5bf06205971c1e6849032144454017f200.zip u-boot-imx-939cda5bf06205971c1e6849032144454017f200.tar.gz u-boot-imx-939cda5bf06205971c1e6849032144454017f200.tar.bz2 |
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 <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/gpio-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |