From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson Subject: Re: [PATCH v3 2/3] dtc: Add data_append_integer function Date: Sat, 24 Sep 2011 11:00:10 +1000 Message-ID: <20110924010010.GN12286@yookeroo.fritz.box> References: <1316800974-30129-1-git-send-email-robotboy@chromium.org> <1316800974-30129-3-git-send-email-robotboy@chromium.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1316800974-30129-3-git-send-email-robotboy-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Anton Staaf Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: devicetree@vger.kernel.org On Fri, Sep 23, 2011 at 11:02:53AM -0700, Anton Staaf wrote: > This function deals with appending integers of various sizes (8, 16 > 32, and 64 bit currently). It handles endianess conversions. If the > integer will not fit in the requested number of bits of storage it > will have it's high bits ignored. > > This patch also rewrites data_append_cell and data_append_addr to use > data_append_integer. > > Signed-off-by: Anton Staaf Acked-by: David Gibson -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson