From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson Subject: Re: [PATCH v4 2/3] dtc: Add data_append_integer function Date: Wed, 12 Oct 2011 01:43:36 +1100 Message-ID: <20111011144336.GI4849@truffala.fritz.box> References: <1317147098-11550-1-git-send-email-robotboy@chromium.org> <1317147098-11550-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: <1317147098-11550-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 Tue, Sep 27, 2011 at 11:11:37AM -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