linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Should of_device_is_compatible() use strcmp() rather than strncasecmp()?
@ 2007-07-03 21:27 Scott Wood
  2007-07-03 21:54 ` Segher Boessenkool
  2007-07-04  3:28 ` Paul Mackerras
  0 siblings, 2 replies; 9+ messages in thread
From: Scott Wood @ 2007-07-03 21:27 UTC (permalink / raw)
  To: linuxppc-dev

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-07-04 12:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-03 21:27 Should of_device_is_compatible() use strcmp() rather than strncasecmp()? Scott Wood
2007-07-03 21:54 ` Segher Boessenkool
2007-07-03 22:15   ` Scott Wood
2007-07-03 22:36     ` Olof Johansson
2007-07-03 22:33       ` Scott Wood
2007-07-03 22:52         ` Segher Boessenkool
2007-07-03 22:41       ` Segher Boessenkool
2007-07-04  3:28 ` Paul Mackerras
2007-07-04 12:09   ` Segher Boessenkool

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).