linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 0001-staging-comedi-drivers-fix-space-coding-style-in-am9.patch
@ 2010-06-03 23:19 Bob Beattie
  0 siblings, 0 replies; only message in thread
From: Bob Beattie @ 2010-06-03 23:19 UTC (permalink / raw)
  To: gregkh, wfp5p; +Cc: devel, linux-kernel, bob.beattie

>From 1b4f1ada44589c52f26aafea9b33db1b1831d3ec Mon Sep 17 00:00:00 2001
From: Bob Beattie <bob.beattie@ntlworld.com>
Date: Thu, 3 Jun 2010 23:43:44 +0100
Subject: [PATCH] staging: comedi: drivers: fix space coding style in am9513.h
 This is a patch to the file am9513.h that fixes missing space warnings found by the checkpatch.pl tool.
 Signed-off-by: Bob Beattie <bob.beattie@ntlworld.com>

---
 drivers/staging/comedi/drivers/am9513.h |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/staging/comedi/drivers/am9513.h b/drivers/staging/comedi/drivers/am9513.h
index 73367d6..0bb839e 100644
--- a/drivers/staging/comedi/drivers/am9513.h
+++ b/drivers/staging/comedi/drivers/am9513.h
@@ -47,32 +47,32 @@
 #ifdef Am9513_8BITBUS

 #define Am9513_write_register(reg, val)				\
-	do{							\
+	do {							\
 		Am9513_output_control(reg);			\
 		Am9513_output_data(val>>8);			\
 		Am9513_output_data(val&0xff);			\
-	}while (0)
+	} while (0)

 #define Am9513_read_register(reg, val)				\
-	do{							\
+	do {							\
 		Am9513_output_control(reg);			\
-		val=Am9513_input_data()<<8;			\
-		val|=Am9513_input_data();			\
-	}while (0)
+		val = Am9513_input_data()<<8;			\
+		val |= Am9513_input_data();			\
+	} while (0)

 #else /* Am9513_16BITBUS */

 #define Am9513_write_register(reg, val)				\
-	do{							\
+	do {							\
 		Am9513_output_control(reg);			\
 		Am9513_output_data(val);			\
-	}while (0)
+	} while (0)

 #define Am9513_read_register(reg, val)				\
-	do{							\
+	do {							\
 		Am9513_output_control(reg);			\
-		val=Am9513_input_data();			\
-	}while (0)
+		val = Am9513_input_data();			\
+	} while (0)

 #endif

--
1.7.0.4




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-03 23:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-03 23:19 0001-staging-comedi-drivers-fix-space-coding-style-in-am9.patch Bob Beattie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).