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

Richard Zhao richard.zhao at freescale.com
Mon Jan 9 00:58:52 EST 2012


On Mon, Jan 09, 2012 at 01:05:39PM +0800, Eric Miao wrote:
> >>  /* 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




More information about the linux-arm-kernel mailing list