On Thu, Jan 13, 2005 at 11:44:44PM +0100, Florian Echtler wrote:
> > I'll do it. How many minor numbers do you want? Is 1 ok?
> Great - I guess one should be enough.
>
> > Will you ever be backporting this driver to 2.4 (it matters in the
> > number I give you.)
> Most likely not.
Great, here's the patch I applied that gives you the 132 minor number.
thanks,
greg k-h
# Subject: USB: give the idmouse the 132 minor number
#
# Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
#
diff -Nru a/Documentation/devices.txt b/Documentation/devices.txt
--- a/Documentation/devices.txt 2005-01-13 15:44:37 -08:00
+++ b/Documentation/devices.txt 2005-01-13 15:44:37 -08:00
@@ -2563,6 +2563,7 @@
128 = /dev/usb/brlvgr0 First Braille Voyager device
...
131 = /dev/usb/brlvgr3 Fourth Braille Voyager device
+ 132 = /dev/usb/idmouse ID Mouse (fingerprint scanner) device
144 = /dev/usb/lcd USB LCD device
160 = /dev/usb/legousbtower0 1st USB Legotower device
...
diff -Nru a/drivers/usb/misc/idmouse.c b/drivers/usb/misc/idmouse.c
--- a/drivers/usb/misc/idmouse.c 2005-01-13 15:44:37 -08:00
+++ b/drivers/usb/misc/idmouse.c 2005-01-13 15:44:37 -08:00
@@ -41,7 +41,7 @@
#define USB_IDMOUSE_PRODUCT_ID 0x0005
/* we still need a minor number */
-#define USB_IDMOUSE_MINOR_BASE 0xFA
+#define USB_IDMOUSE_MINOR_BASE 132
static struct usb_device_id idmouse_table[] = {
{USB_DEVICE(USB_IDMOUSE_VENDOR_ID, USB_IDMOUSE_PRODUCT_ID)},
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel