Re: Oh dear, I meant _this_ patch to mouse.c

Alan Cox (alan@cymru.net)
Tue, 19 Mar 1996 10:31:16 +0000 (GMT)


> +static struct {
> + int minor;
> + char *module;
> +} mice[] = {
> + { BUSMOUSE_MINOR, "busmouse" },
> + { PSMOUSE_MINOR, "psaux" },
> + { MS_BUSMOUSE_MINOR, "msbusmouse" },
> + { ATIXL_BUSMOUSE_MINOR, "atixlmouse" },
> + { WATCHDOG_MINOR, "wdt" },
> + { TEMP_MINOR, "wdt" },
> + {-1, NULL} /* end of list */
> +};
> +

Yeuch Yeuch no no no no etc. Pass the minor number. There could be 256
things in that table [which also ought to be #ifdef'd out for no kerneld].

Alan