Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751470Ab2KSGfu (ORCPT ); Mon, 19 Nov 2012 01:35:50 -0500 Received: from mail-ie0-f174.google.com ([209.85.223.174]:36036 "EHLO mail-ie0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751252Ab2KSGfs (ORCPT ); Mon, 19 Nov 2012 01:35:48 -0500 MIME-Version: 1.0 In-Reply-To: References: <64c5278ebdec503f83e9b7002bf13affb7f3260f.1351225085.git.viresh.kumar@linaro.org> <50991C41.50705@gmail.com> <509FB25F.3030307@gmail.com> <509FFF8B.3010707@gmail.com> Date: Mon, 19 Nov 2012 12:05:47 +0530 Message-ID: Subject: Re: [PATCH Resend V2] dt: add helper function to read u8 & u16 variables & arrays From: Rajanikanth HV To: Viresh Kumar Cc: Rob Herring , "linaro-dev@lists.linaro.org Devel" , andriy.shevchenko@intel.com, Patch Tracking , devicetree-discuss@lists.ozlabs.org, spear-devel@list.st.com, linux-kernel@vger.kernel.org, Rob Herring Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 663 Lines: 18 On 19 November 2012 12:00, Viresh Kumar wrote: > Firstly you tried square braces [ ], I am not sure if that is allowed. > Can you point me to the specification? http://www.devicetree.org/Device_Tree_Usage " a-byte-data-property = [0x01 0x23 0x34 0x56]; " > > And simply passing 0x50, 0x60 etc.. will make them u32 instead of > u8. i.e. they will be stored as 0x00000050, etc. > > -- > viresh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/