analog.c MODULE_PARM, attention Vojtech Pavlik

From: Keith Owens (kaos@ocs.com.au)
Date: Mon Nov 13 2000 - 00:16:23 EST


Originally sent to vojtech@suse.cz but that host is not resolving.

drivers/char/joystick/analog.c in 2.4.0-test10 has these lines.

MODULE_PARM(js,"1-16s");

#define ANALOG_PORTS 16

static char *js[ANALOG_PORTS];
static int analog_options[ANALOG_PORTS];

Instead of hard coding 16 in MODULE_PARM, I recommend

#define ANALOG_PORTS 16

static char *js[ANALOG_PORTS];
static int analog_options[ANALOG_PORTS];
MODULE_PARM(js,"1-" __MODULE_STRING(ANALOG_PORTS) "s");

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



This archive was generated by hypermail 2b29 : Wed Nov 15 2000 - 21:00:23 EST