Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Marko Kohtala and committed by
Linus Torvalds
110bee75 a6767b7c

+1 -1
+1 -1
include/linux/parport_pc.h
··· 85 85 unsigned char ecr = inb (ECONTROL (p)); 86 86 unsigned char dcr = inb (CONTROL (p)); 87 87 unsigned char dsr = inb (STATUS (p)); 88 - static char *ecr_modes[] = {"SPP", "PS2", "PPFIFO", "ECP", "xXx", "yYy", "TST", "CFG"}; 88 + static const char *const ecr_modes[] = {"SPP", "PS2", "PPFIFO", "ECP", "xXx", "yYy", "TST", "CFG"}; 89 89 const struct parport_pc_private *priv = p->physport->private_data; 90 90 int i; 91 91