lkml.org 
[lkml]   [2002]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPatch: linux-2.5.2-pre8/include/linux/tpqic02.h kdev_t fix
	I forgot to include this header file in my kdev_t
compilation fixes for drivers/char. This change is needed so
that drivers/char/tpqic02.c will compile correctly.

--
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."
--- linux-2.5.2-pre8/include/linux/tpqic02.h Sun Dec 16 15:44:43 2001
+++ linux/include/linux/tpqic02.h Fri Jan 4 21:12:42 2002
@@ -587,10 +587,10 @@
* |___________________ Reserved for diagnostics during debugging.
*/

-#define TP_REWCLOSE(d) ((MINOR(d)&0x01) == 1) /* rewind bit */
+#define TP_REWCLOSE(d) ((minor(d)&0x01) == 1) /* rewind bit */
/* rewind is only done if data has been transferred */
-#define TP_DENS(dev) ((MINOR(dev) >> 1) & 0x07) /* tape density */
-#define TP_UNIT(dev) ((MINOR(dev) >> 4) & 0x07) /* unit number */
+#define TP_DENS(dev) ((minor(dev) >> 1) & 0x07) /* tape density */
+#define TP_UNIT(dev) ((minor(dev) >> 4) & 0x07) /* unit number */

/* print excessive diagnostics */
#define TP_DIAGS(dev) (QIC02_TAPE_DEBUG & TPQD_DIAGS)
\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.041 / U:0.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site