[PATCH] parport: DEBUG_PARPORT build fix

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

Signed-off-by: Marko Kohtala <marko.kohtala@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Marko Kohtala 2006-01-06 00:19:49 -08:00 коммит произвёл Linus Torvalds
Родитель a6767b7cc6
Коммит 110bee75d2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -85,7 +85,7 @@ extern __inline__ void dump_parport_state (char *str, struct parport *p)
unsigned char ecr = inb (ECONTROL (p)); unsigned char ecr = inb (ECONTROL (p));
unsigned char dcr = inb (CONTROL (p)); unsigned char dcr = inb (CONTROL (p));
unsigned char dsr = inb (STATUS (p)); unsigned char dsr = inb (STATUS (p));
static char *ecr_modes[] = {"SPP", "PS2", "PPFIFO", "ECP", "xXx", "yYy", "TST", "CFG"}; static const char *const ecr_modes[] = {"SPP", "PS2", "PPFIFO", "ECP", "xXx", "yYy", "TST", "CFG"};
const struct parport_pc_private *priv = p->physport->private_data; const struct parport_pc_private *priv = p->physport->private_data;
int i; int i;