mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] parport: fix documentation
@ 2006-01-21 21:24 Arnaud Giersch
  0 siblings, 0 replies; only message in thread
From: Arnaud Giersch @ 2006-01-21 21:24 UTC (permalink / raw)
  To: philb, tim, campbell, andrea; +Cc: linux-parport, linux-kernel, trivial

From: Arnaud Giersch <arnaud.giersch@free.fr>

Fix documentation to actually match the code.

Signed-off-by: Arnaud Giersch <arnaud.giersch@free.fr>
---

 Documentation/parport-lowlevel.txt |    8 ++++----
 drivers/parport/ieee1284.c         |   10 +++++-----
 2 files changed, 9 insertions(+), 9 deletions(-)

--- linux-2.6.16-rc1.orig/Documentation/parport-lowlevel.txt	2006-01-17 08:44:47.000000000 +0100
+++ linux-2.6.16-rc1/Documentation/parport-lowlevel.txt	2006-01-21 21:39:08.501249608 +0100
@@ -1068,7 +1068,7 @@ SYNOPSIS
 
 struct parport_operations {
 	...
-	void (*write_status) (struct parport *port, unsigned char s);
+	void (*write_control) (struct parport *port, unsigned char s);
 	...
 };
 
@@ -1097,9 +1097,9 @@ SYNOPSIS
 
 struct parport_operations {
 	...
-	void (*frob_control) (struct parport *port,
-	                      unsigned char mask,
-			      unsigned char val);
+	unsigned char (*frob_control) (struct parport *port,
+				       unsigned char mask,
+				       unsigned char val);
 	...
 };
 
--- linux-2.6.16-rc1.orig/drivers/parport/ieee1284.c	2006-01-17 08:44:47.000000000 +0100
+++ linux-2.6.16-rc1/drivers/parport/ieee1284.c	2006-01-21 21:39:08.504248053 +0100
@@ -61,10 +61,10 @@ static void timeout_waiting_on_port (uns
  *	set to zero, it returns immediately.
  *
  *	If an interrupt occurs before the timeout period elapses, this
- *	function returns one immediately.  If it times out, it returns
- *	a value greater than zero.  An error code less than zero
- *	indicates an error (most likely a pending signal), and the
- *	calling code should finish what it's doing as soon as it can.
+ *	function returns zero immediately.  If it times out, it returns
+ *	one.  An error code less than zero indicates an error (most
+ *	likely a pending signal), and the calling code should finish
+ *	what it's doing as soon as it can.
  */
 
 int parport_wait_event (struct parport *port, signed long timeout)
@@ -110,7 +110,7 @@ int parport_wait_event (struct parport *
  *
  *	If the status lines take on the desired values before the
  *	timeout period elapses, parport_poll_peripheral() returns zero
- *	immediately.  A zero return value greater than zero indicates
+ *	immediately.  A return value greater than zero indicates
  *	a timeout.  An error code (less than zero) indicates an error,
  *	most likely a signal that arrived, and the caller should
  *	finish what it is doing as soon as possible.

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

only message in thread, other threads:[~2006-01-21 21:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-21 21:24 [PATCH] parport: fix documentation Arnaud Giersch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®