Skip to content

Commit

Permalink
[PATCH] parport: DEBUG_PARPORT build fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kohtala authored and Linus Torvalds committed Jan 6, 2006
1 parent a6767b7 commit 110bee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/parport_pc.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ extern __inline__ void dump_parport_state (char *str, struct parport *p)
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"};
static const char *const ecr_modes[] = {"SPP", "PS2", "PPFIFO", "ECP", "xXx", "yYy", "TST", "CFG"};
const struct parport_pc_private *priv = p->physport->private_data;
int i;

Expand Down

0 comments on commit 110bee7

Please sign in to comment.