From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frank Rowand Subject: Re: case sensitivity for devicetree node names Date: Fri, 10 Jun 2016 15:02:53 -0700 Message-ID: <575B390D.1040600@gmail.com> References: <575B1D84.2010703@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=oPzcojiafMD+oq9Hj/DlCf3LqFXrQP9HmUg6cQ46Rok=; b=RFZl5w5zl5PPZ52lrVvgjKTF5YVFj4i3CHy3xrDtKtBpOw2LsJc6A45yzZ7GlMrGCM 95wdSJCsw4GLz8JNYmH8sDsZz+hRCkE8R5C6UY/wRJV1EzCPHXCt2sfaGT7Ou8bxz8ix NxGItPmzjFJwtqNoKt2OiLI6Who3xLqNS8oBpd+sWiUiWC+No+rDKBz83ymCDsll6y/J O327mtC7Z6zlLpCkctq/5y1QCxKMeDBj3TFrdNzMSfSPY6TEXFd9XKW08FpANMPuvuQU +WGdSgEf4j3tBhzK+QcC25L3kasmNysZcmgv71NYmet6Mo2I3eF3S6xipZGeR/IjHkE5 0Oyg== In-Reply-To: Sender: devicetree-spec-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Rob Herring Cc: Grant Likely , David Gibson , "devicetree-spec-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" On 06/10/16 14:38, Rob Herring wrote: > On Fri, Jun 10, 2016 at 3:05 PM, Frank Rowand 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]" 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.