[SPARC]: Use strcasecmp for OFW property name comparisons.

This allows us to simplify sharing code with powerpc which
has properties that have various forms of capitalization
when on the sparc64 side the property is all lower-case.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2007-03-29 01:28:51 -07:00
parent ded220bd8f
commit a8b8814bdf
2 changed files with 4 additions and 4 deletions

View File

@ -158,7 +158,7 @@ struct property *of_find_property(const struct device_node *np,
struct property *pp; struct property *pp;
for (pp = np->properties; pp != 0; pp = pp->next) { for (pp = np->properties; pp != 0; pp = pp->next) {
if (strcmp(pp->name, name) == 0) { if (strcasecmp(pp->name, name) == 0) {
if (lenp != 0) if (lenp != 0)
*lenp = pp->length; *lenp = pp->length;
break; break;
@ -242,7 +242,7 @@ int of_set_property(struct device_node *dp, const char *name, void *val, int len
while (*prevp) { while (*prevp) {
struct property *prop = *prevp; struct property *prop = *prevp;
if (!strcmp(prop->name, name)) { if (!strcasecmp(prop->name, name)) {
void *old_val = prop->value; void *old_val = prop->value;
int ret; int ret;

View File

@ -160,7 +160,7 @@ struct property *of_find_property(struct device_node *np, const char *name,
struct property *pp; struct property *pp;
for (pp = np->properties; pp != 0; pp = pp->next) { for (pp = np->properties; pp != 0; pp = pp->next) {
if (strcmp(pp->name, name) == 0) { if (strcasecmp(pp->name, name) == 0) {
if (lenp != 0) if (lenp != 0)
*lenp = pp->length; *lenp = pp->length;
break; break;
@ -243,7 +243,7 @@ int of_set_property(struct device_node *dp, const char *name, void *val, int len
while (*prevp) { while (*prevp) {
struct property *prop = *prevp; struct property *prop = *prevp;
if (!strcmp(prop->name, name)) { if (!strcasecmp(prop->name, name)) {
void *old_val = prop->value; void *old_val = prop->value;
int ret; int ret;