Originally sent to [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to