Thread (9 messages) flat view 9 messages, 4 authors, 2007-07-04

Should of_device_is_compatible() use strcmp() rather than strncasecmp()?

From: Scott Wood <hidden>
Date: 2007-07-03 21:27:45

Is there any particular reason that of_device_is_compatible uses 
strncasecmp()?  Besides the OF spec saying that names (and thus 
compatibles) are case sensitive, the "n" part screws up matching when a 
subset of a string is not a more generic version thereof.  For example, 
ucc_geth v. ucc_geth_phy, or fsl,cpm v. fsl,cpm-enet.

Does anything actually rely on this behavior?

-Scott
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help