public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] 2.4.3-pre4: allow more than 3 printers
@ 2001-03-19  9:49 Tim Waugh
  0 siblings, 0 replies; only message in thread
From: Tim Waugh @ 2001-03-19  9:49 UTC (permalink / raw)
  To: linux-kernel

It's easier to add parallel ports to a machine nowadays, so the
default maximum of three printer devices is becoming a bit
restrictive.

Here's a patch to increase it.  Any objections?

Tim.
*/

2001-03-19  Tim Waugh  <twaugh@redhat.com>

	* include/linux/parport.h: Increase PARPORT_MAX to 16.
	* drivers/char/lp.c: Increase LP_NO to 16.

--- linux/include/linux/parport.h.printers	Mon Mar 19 09:41:22 2001
+++ linux/include/linux/parport.h	Mon Mar 19 09:42:08 2001
@@ -11,8 +11,8 @@
 
 /* Start off with user-visible constants */
 
-/* Maximum of 8 ports per machine */
-#define PARPORT_MAX  8 
+/* Maximum of 16 ports per machine */
+#define PARPORT_MAX  16
 
 /* Magic numbers */
 #define PARPORT_IRQ_NONE  -1
--- linux/drivers/char/lp.c.printers	Mon Mar 19 09:41:12 2001
+++ linux/drivers/char/lp.c	Mon Mar 19 09:41:41 2001
@@ -135,8 +135,8 @@
 #include <asm/uaccess.h>
 #include <asm/system.h>
 
-/* if you have more than 3 printers, remember to increase LP_NO */
-#define LP_NO 3
+/* if you have more than 16 printers, remember to increase LP_NO */
+#define LP_NO 16
 
 /* ROUND_UP macro from fs/select.c */
 #define ROUND_UP(x,y) (((x)+(y)-1)/(y))

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

only message in thread, other threads:[~2001-03-19  9:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-19  9:49 [patch] 2.4.3-pre4: allow more than 3 printers Tim Waugh

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