Add missing "struct" keyword preventing compilation with DEBUG_PARPORT
defined. Also add some "const".

Signed-off-by: Marko Kohtala <[EMAIL PROTECTED]>

---

 include/linux/parport_pc.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Index: linux-dvb/include/linux/parport_pc.h
===================================================================
--- linux-dvb.orig/include/linux/parport_pc.h   2005-06-24 15:42:28.000000000 
+0300
+++ linux-dvb/include/linux/parport_pc.h        2005-06-24 15:42:52.000000000 
+0300
@@ -85,8 +85,8 @@ extern __inline__ void dump_parport_stat
        unsigned char ecr = inb (ECONTROL (p));
        unsigned char dcr = inb (CONTROL (p));
        unsigned char dsr = inb (STATUS (p));
-       static char *ecr_modes[] = {"SPP", "PS2", "PPFIFO", "ECP", "xXx", 
"yYy", "TST", "CFG"};
-       const struct parport_pc_private *priv = (parport_pc_private 
*)p->physport->private_data;
+       static const char *const ecr_modes[] = {"SPP", "PS2", "PPFIFO", "ECP", 
"xXx", "yYy", "TST", "CFG"};
+       const struct parport_pc_private *priv = (struct parport_pc_private 
*)p->physport->private_data;
        int i;
 
        printk (KERN_DEBUG "*** parport state (%s): ecr=[%s", str, 
ecr_modes[(ecr & 0xe0) >> 5]);

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to