Re: case sensitivity for devicetree node names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 06/10/16 14:38, Rob Herring wrote:
> On Fri, Jun 10, 2016 at 3:05 PM, Frank Rowand <frowand.list@xxxxxxxxx> wrote:
>> I had assumed that devicetree node names were case sensitive. But a recent
>> email thread asserted that they were not, which made me curious.
> 
> News to me. Got a pointer?
> 
> Rob
> 

http://lkml.iu.edu/hypermail/linux/kernel/1606.1/02457.html

Subject: RE: [RESEND PATCH v2 1/2] device property: Add function to search
for named child of device
From: "Opensource [Adam Thomson]" <Adam.Thomson.Opensource@xxxxxxxxxxx>
Date: Fri, 10 Jun 2016 09:58:39 +0000


Snippet:

>
> Why do you use strcasecmp() here?

DT node names are case insensitive. The of.h header does provide a helper macro
which is equivalent to this, but that macro is part of the '#ifdef CONFIG_OF'
block. If I were to use it then it would cause non-DT builds to fail. I opted
for strcasecmp() directly as I didn't think for just this one scenario it made
sense to reorganise the of.h header with regards to the helper macros. Of course
if there are other opinions on this then am happy to listen.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux