linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] staging: comedi: cleanup formating in drivers/8255.c
@ 2009-09-26  4:33 Bruce Jones
  2009-10-02 22:09 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Bruce Jones @ 2009-09-26  4:33 UTC (permalink / raw)
  To: gregkh; +Cc: wfp5, devel, linux-kernel

Fix the formatting in this driver to conform to the
standard.  Move EXPORT_SYMBOL to under the exported
funtion, and add KERN_INFO to some diagnostic printks.

Signed-off-by: Bruce Jones <brucej@linux.com>

---
 drivers/staging/comedi/drivers/8255.c |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/drivers/staging/comedi/drivers/8255.c b/drivers/staging/comedi/drivers/8255.c
index 8ad3520..400bef4 100644
--- a/drivers/staging/comedi/drivers/8255.c
+++ b/drivers/staging/comedi/drivers/8255.c
@@ -132,6 +132,7 @@ void subdev_8255_interrupt(struct comedi_device *dev,
 
 	comedi_event(dev, s);
 }
+EXPORT_SYMBOL(subdev_8255_interrupt);
 
 static int subdev_8255_cb(int dir, int port, int data, unsigned long arg)
 {
@@ -345,6 +346,7 @@ int subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s,
 
 	return 0;
 }
+EXPORT_SYMBOL(subdev_8255_init);
 
 int subdev_8255_init_irq(struct comedi_device *dev, struct comedi_subdevice *s,
 			 int (*cb) (int, int, int, unsigned long),
@@ -364,6 +366,7 @@ int subdev_8255_init_irq(struct comedi_device *dev, struct comedi_subdevice *s,
 
 	return 0;
 }
+EXPORT_SYMBOL(subdev_8255_init_irq);
 
 void subdev_8255_cleanup(struct comedi_device *dev, struct comedi_subdevice *s)
 {
@@ -376,6 +379,7 @@ void subdev_8255_cleanup(struct comedi_device *dev, struct comedi_subdevice *s)
 		kfree(s->private);
 	}
 }
+EXPORT_SYMBOL(subdev_8255_cleanup);
 
 /*
 
@@ -390,7 +394,7 @@ static int dev_8255_attach(struct comedi_device *dev,
 	unsigned long iobase;
 	int i;
 
-	printk("comedi%d: 8255:", dev->minor);
+	printk(KERN_INFO "comedi%d: 8255:", dev->minor);
 
 	dev->board_name = "8255";
 
@@ -400,7 +404,7 @@ static int dev_8255_attach(struct comedi_device *dev,
 			break;
 	}
 	if (i == 0) {
-		printk(" no devices specified\n");
+		printk(KERN_INFO " no devices specified\n");
 		return -EINVAL;
 	}
 
@@ -411,9 +415,9 @@ static int dev_8255_attach(struct comedi_device *dev,
 	for (i = 0; i < dev->n_subdevices; i++) {
 		iobase = it->options[i];
 
-		printk(" 0x%04lx", iobase);
+		printk(KERN_INFO " 0x%04lx", iobase);
 		if (!request_region(iobase, _8255_SIZE, "8255")) {
-			printk(" (I/O port conflict)");
+			printk(KERN_INFO " (I/O port conflict)");
 
 			dev->subdevices[i].type = COMEDI_SUBD_UNUSED;
 		} else {
@@ -422,7 +426,7 @@ static int dev_8255_attach(struct comedi_device *dev,
 		}
 	}
 
-	printk("\n");
+	printk(KERN_INFO "\n");
 
 	return 0;
 }
@@ -433,7 +437,7 @@ static int dev_8255_detach(struct comedi_device *dev)
 	unsigned long iobase;
 	struct comedi_subdevice *s;
 
-	printk("comedi%d: 8255: remove\n", dev->minor);
+	printk(KERN_INFO "comedi%d: 8255: remove\n", dev->minor);
 
 	for (i = 0; i < dev->n_subdevices; i++) {
 		s = dev->subdevices + i;
@@ -446,8 +450,3 @@ static int dev_8255_detach(struct comedi_device *dev)
 
 	return 0;
 }
-
-EXPORT_SYMBOL(subdev_8255_init);
-EXPORT_SYMBOL(subdev_8255_init_irq);
-EXPORT_SYMBOL(subdev_8255_cleanup);
-EXPORT_SYMBOL(subdev_8255_interrupt);
-- 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 2/2] staging: comedi: cleanup formating in drivers/8255.c
  2009-09-26  4:33 [PATCH 2/2] staging: comedi: cleanup formating in drivers/8255.c Bruce Jones
@ 2009-10-02 22:09 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2009-10-02 22:09 UTC (permalink / raw)
  To: Bruce Jones; +Cc: gregkh, devel, wfp5, linux-kernel

On Fri, Sep 25, 2009 at 09:33:25PM -0700, Bruce Jones wrote:
> Fix the formatting in this driver to conform to the
> standard.  Move EXPORT_SYMBOL to under the exported
> funtion, and add KERN_INFO to some diagnostic printks.

Same rejection problem here, someone beat you to it.

sorry,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-02 23:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-26  4:33 [PATCH 2/2] staging: comedi: cleanup formating in drivers/8255.c Bruce Jones
2009-10-02 22:09 ` Greg KH

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).