Skip to contentSkip to conversation

Staging: comedi: Coding style issues

PATCH In review [email protected] 2 participants 3 messages Jul 10, 2011 – Aug 23, 2011 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Staging: comedi: Coding style issues

From: Mark Pearson <[email protected]>

comedi.h : static inline decleration placed on the same line as the end
bracket from the previous static inline decleration. Bracket coding issue also cleaned-up.

---
 drivers/staging/comedi/comedi.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/staging/comedi/comedi.h +3 -1
index 6c900e2..ed6854c 100644
@@ -514,7 +514,9 @@
 			return 0x1 + pfi_channel;
 		else
 			return 0xb + pfi_channel;
-	} static inline unsigned NI_USUAL_RTSI_SELECT(unsigned rtsi_channel) {
+	}
+	static inline unsigned NI_USUAL_RTSI_SELECT(unsigned rtsi_channel)
+	{
 		if (rtsi_channel < 7)
 			return 0xb + rtsi_channel;
 		else
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 2/2 Staging: comedi: Fixed coding style issues.

From: Mark Pearson <[email protected]>

comedi_fops.c : A forward decleration was declared as extern although it
is a function private to this file. Changed the decleration to static.

---
 drivers/staging/comedi/comedi_fops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/comedi/comedi_fops.c +1 -1
index e7e72b8..88d7a0a 100644
@@ -101,7 +101,7 @@ static int do_insn_ioctl(struct comedi_device *dev,
 static int do_poll_ioctl(struct comedi_device *dev, unsigned int subd,
 			 void *file);
 
-extern void do_become_nonbusy(struct comedi_device *dev,
+static void do_become_nonbusy(struct comedi_device *dev,
 			      struct comedi_subdevice *s);
 static int do_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
 
Signature · 1 line
1.7.0.4
#2 lore raw
In reply to [email protected]
Quoted 16 lines · On Sun, Jul 10, 2011 at 09:16:37PM +0200, [email protected] wrote:

From: Mark Pearson <[email protected]>

comedi.h : static inline decleration placed on the same line as the end
bracket from the previous static inline decleration. Bracket coding issue also cleaned-up.

---
 drivers/staging/comedi/comedi.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/staging/comedi/comedi.h +0 -0
index 6c900e2..ed6854c 100644

drivers/staging/comedi/comedi.h line 519

Quoted 7 lines
drivers/staging/comedi/comedi.h +3 -1
@@ -514,7 +514,9 @@
 			return 0x1 + pfi_channel;
 		else
 			return 0xb + pfi_channel;
-	} static inline unsigned NI_USUAL_RTSI_SELECT(unsigned rtsi_channel) {
+	}
+	static inline unsigned NI_USUAL_RTSI_SELECT(unsigned rtsi_channel)
+	{

This patch does not apply anymore to 3.1-rc3, care to resend?

thanks,

greg k-h