projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eb31b1
)
dm: Use case-insensitive comparison for GPIO banks
author
Simon Glass
<sjg@chromium.org>
Thu, 12 Jun 2014 05:29:47 +0000
(23:29 -0600)
committer
Simon Glass
<sjg@chromium.org>
Fri, 20 Jun 2014 17:55:39 +0000
(11:55 -0600)
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>
drivers/gpio/gpio-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-uclass.c
b/drivers/gpio/gpio-uclass.c
index fa2c2fb7c47c391ca5c505dafd98946f5098171e..f1bbc587961709dec3922c52c76585227acecd9b 100644
(file)
--- 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 (!strnc
asec
mp(name, uc_priv->bank_name, len)) {
if (strict_strtoul(name + len, 10, &offset))
continue;
if (devp)