Messages in this thread |  | | From | Keith Owens <> | Subject | analog.c MODULE_PARM, attention Vojtech Pavlik | Date | Mon, 13 Nov 2000 16:16:23 +1100 |
| |
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/
|  |