Thread (40 messages) flat view 40 messages, 9 authors, 2012-01-12
STALE5354d

[PATCH 4/6] arm/dts: imx6q-sabrelite: add sgtl5000 audio codec

From: Richard Zhao <hidden>
Date: 2012-01-09 05:58:52

On Mon, Jan 09, 2012 at 01:05:39PM +0800, Eric Miao wrote:
quoted
quoted
?/* Default string compare functions, Allow arch asm/prom.h to override */
?#if !defined(of_compat_cmp)
?#define of_compat_cmp(s1, s2, l) ? ? ? strcasecmp((s1), (s2))
-#define of_prop_cmp(s1, s2) ? ? ? ? ? ?strcmp((s1), (s2))
+#define of_prop_cmp(s1, s2) ? ? ? ? ? ?strcasecmp((s1), (s2))
?#define of_node_cmp(s1, s2) ? ? ? ? ? ?strcasecmp((s1), (s2))
?#endif
Device-trees are case sensitive, so I don't think we want to go globally
changing that behavior.

If you want lower case names, then change the sgtl5000 code to lower
case names.
+1, I'd vote for consistent lower case names.
sgtl5000 is used by many other platforms too. I doubt why we do the
big change just because it's convention or looks nice.
As I said in other mails, I don't feel good about the lower case
convention:
 - hw spec or sch may use upper case, lower case don't reflect exact.
 - the lower case rule might have to extend to other subsystems, for
   example, regulator. I bet it's not the only case when we get more
   and more DT bindings.

Thanks
Richard
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help