public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* analog.c MODULE_PARM, attention Vojtech Pavlik
@ 2000-11-13  5:16 Keith Owens
  0 siblings, 0 replies; only message in thread
From: Keith Owens @ 2000-11-13  5:16 UTC (permalink / raw)
  To: linux-kernel

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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-11-13  5:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-13  5:16 analog.c MODULE_PARM, attention Vojtech Pavlik Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox