From: David Gibson Subject: Re: [PATCH v2 2/3] dtc: Add data_append_integer function Date: Fri, 23 Sep 2011 10:19:17 +1000 Message-ID: <20110923001917.GD12286@yookeroo.fritz.box> References: <1316715927-11944-1-git-send-email-robotboy@chromium.org> <1316715927-11944-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: <1316715927-11944-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 Thu, Sep 22, 2011 at 11:25:26AM -0700, Anton Staaf wrote: > This function deals with appending integers of various sizes (8, 16 > 32, and 64 bit currently). It handles endianess conversions and > verifies that the given integer is not larger than the specified > size. > > Signed-off-by: Anton Staaf Acked-by: David Gibson It occurs to me that data_append_cell() could be rewritten in terms of this function. -- 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