From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson Subject: Re: [PATCH 2/5] fdtput: Prepare to support multiple operations Date: Thu, 12 Jul 2012 22:37:45 +1000 Message-ID: <20120712123745.GB11326@truffala.fritz.box> References: <1341925008-10627-1-git-send-email-sjg@chromium.org> <1341925008-10627-2-git-send-email-sjg@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: <1341925008-10627-2-git-send-email-sjg-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" To: Simon Glass Cc: Devicetree Discuss List-Id: devicetree@vger.kernel.org On Tue, Jul 10, 2012 at 05:56:45AM -0700, Simon Glass wrote: > We want to add new options to this tool. In preparation for this, add > the concept of a current operation. > > Signed-off-by: Simon Glass > --- > fdtput.c | 37 ++++++++++++++++++++++++++----------- > 1 files changed, 26 insertions(+), 11 deletions(-) > > diff --git a/fdtput.c b/fdtput.c > index 244d1f1..eceb7f2 100644 > --- a/fdtput.c > +++ b/fdtput.c > @@ -28,7 +28,13 @@ > > #include "util.h" > > +/* These are the operations we support */ > +enum operation_t { This isn't quite usual convention xxx_t usually indicates a typedef -- 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