Thread (1 message) 1 message, 1 author, 2012-07-12

Re: [PATCH 2/5] fdtput: Prepare to support multiple operations

From: David Gibson <hidden>
Date: 2012-07-12 12:37:45

On Tue, Jul 10, 2012 at 05:56:45AM -0700, Simon Glass wrote:
quoted hunk
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 <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help