Thread (3 messages) 3 messages, 3 authors, 2005-02-28

Re: [ patch 2/7] drivers/serial/jsm: new serial device driver

From: Greg KH <hidden>
Date: 2005-02-28 07:00:12
Also in: lkml

On Sun, Feb 27, 2005 at 06:38:44PM -0500, Wen Xiong wrote:
quoted hunk ↗ jump to hunk
diff -Nuar linux-2.6.9.orig/drivers/serial/jsm/jsm_tty.c linux-2.6.9.new/drivers/serial/jsm/jsm_tty.c
--- linux-2.6.9.orig/drivers/serial/jsm/jsm_tty.c	1969-12-31 18:00:00.000000000 -0600
+++ linux-2.6.9.new/drivers/serial/jsm/jsm_tty.c	2005-02-27 17:09:43.456960832 -0600
@@ -0,0 +1,1273 @@
+/*
+ * Copyright 2003 Digi International (www.digi.com)
+ *	Scott H Kilau <Scott_Kilau at digi dot com>
But didn't you do a lot of work on this code too?  Shouldn't you be
adding your copyright?
+ *	NOTE TO LINUX KERNEL HACKERS:  DO NOT REFORMAT THIS CODE! 
+ *
+ *	This is shared code between Digi's CVS archive and the
+ *	Linux Kernel sources.
+ *	Changing the source just for reformatting needlessly breaks
+ *	our CVS diff history.
+ *
+ *	Send any bug fixes/changes to:  Eng.Linux at digi dot com. 
+ *	Thank you. 
Is this still true?  The formatting looks sane, so you can probably take
this all out.  And put a real email address in there please...

+ * $Id: jsm_tty.c,v 1.79 2004/09/25 07:01:46 scottk Exp $
Take these out, not needed.
+#include <linux/device.h>	/* For udelay */
Comment is incorrect.  What do you need device.h for?
+	DPR_IOCTL(("jsm_getmstat start\n"));
You have odd macros with two "((", what's up with that?  Please use the
standard macros dev_dbg() and friends.  It's a way to get a standard
message out of the kernel.
+static void jsm_tty_set_mctrl(struct uart_port *port, unsigned int mctrl)
+{
+	DPR_IOCTL(("jsm_set_modem_info() start\n"));
Oh, and why not just use __FUNCTION__?
+static void jsm_tty_stop_rx(struct uart_port *port)
+{
+
+	JSM_CHANNEL->ch_bd->bd_ops->disable_receiver(JSM_CHANNEL);
+
+}
I think you can drop the extra lines here...

And what's with the all uppercase JSM_CHANNEL?  Why not just use the
structure pointer.

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help