]> git.hungrycats.org Git - linux/commitdiff
[PATCH] USB: hook up the other (non-HID) input devices to the input system properly.
authorGreg Kroah-Hartman <greg@kroah.com>
Tue, 20 Jan 2004 07:37:47 +0000 (23:37 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 20 Jan 2004 07:37:47 +0000 (23:37 -0800)
drivers/usb/input/aiptek.c
drivers/usb/input/kbtab.c
drivers/usb/input/powermate.c
drivers/usb/input/usbkbd.c
drivers/usb/input/usbmouse.c
drivers/usb/input/wacom.c
drivers/usb/input/xpad.c

index ccfa5a79c1c6a08dbb611669acd5ef569c8f3fa8..c0c9080bb714e6eca073304831a42cc310988e7a 100644 (file)
@@ -318,6 +318,7 @@ aiptek_probe(struct usb_interface *intf,
        aiptek->dev.id.vendor = dev->descriptor.idVendor;
        aiptek->dev.id.product = dev->descriptor.idProduct;
        aiptek->dev.id.version = dev->descriptor.bcdDevice;
+       aiptek->dev.dev = &intf->dev;
        aiptek->usbdev = dev;
 
        endpoint = &intf->altsetting[0].endpoint[0].desc;
index 84ca1106ade7d08e08d4a16c56b6bfffd51b3e9b..c37912ab547ff62af87df01fba9fa226e850b8cb 100644 (file)
@@ -172,6 +172,7 @@ static int kbtab_probe(struct usb_interface *intf, const struct usb_device_id *i
        kbtab->dev.id.vendor = dev->descriptor.idVendor;
        kbtab->dev.id.product = dev->descriptor.idProduct;
        kbtab->dev.id.version = dev->descriptor.bcdDevice;
+       kbtab->dev.dev = &intf->dev;
        kbtab->usbdev = dev;
 
        endpoint = &intf->altsetting[0].endpoint[0].desc;
index da692d746bf50afc2d1a4d4bd681e04034224cea..9b567663b2c5a33f92bb4a7cd6a0b07817ebfa74 100644 (file)
@@ -388,6 +388,7 @@ static int powermate_probe(struct usb_interface *intf, const struct usb_device_i
        pm->input.id.product = udev->descriptor.idProduct;
        pm->input.id.version = udev->descriptor.bcdDevice;
        pm->input.event = powermate_input_event;
+       pm->input.dev = &intf->dev;
 
        input_register_device(&pm->input);
 
index 57659fdae0de4a81bbbb219a0fe5a12dd5fc914d..0910320e2aefe779e08a827f3718cce2b96a5f89 100644 (file)
@@ -299,6 +299,7 @@ static int usb_kbd_probe(struct usb_interface *iface,
        kbd->dev.id.vendor = dev->descriptor.idVendor;
        kbd->dev.id.product = dev->descriptor.idProduct;
        kbd->dev.id.version = dev->descriptor.bcdDevice;
+       kbd->dev.dev = &iface->dev;
 
        if (!(buf = kmalloc(63, GFP_KERNEL))) {
                usb_free_urb(kbd->irq);
index eabe1a343fdd198920d2aea34e7c7f1779471dcf..e293da9399babbdc5a7872ba51d0648831cda258 100644 (file)
@@ -183,6 +183,7 @@ static int usb_mouse_probe(struct usb_interface * intf, const struct usb_device_
        mouse->dev.id.vendor = dev->descriptor.idVendor;
        mouse->dev.id.product = dev->descriptor.idProduct;
        mouse->dev.id.version = dev->descriptor.bcdDevice;
+       mouse->dev.dev = &intf->dev;
 
        if (!(buf = kmalloc(63, GFP_KERNEL))) {
                usb_buffer_free(dev, 8, mouse->data, mouse->data_dma);
index 6cd182956c8988e7bece759da21b4a1d5ccc54ee..752fa119995c46aa14c7a8b258a540bdf40b1d24 100644 (file)
@@ -578,6 +578,7 @@ static int wacom_probe(struct usb_interface *intf, const struct usb_device_id *i
        wacom->dev.id.vendor = dev->descriptor.idVendor;
        wacom->dev.id.product = dev->descriptor.idProduct;
        wacom->dev.id.version = dev->descriptor.bcdDevice;
+       wacom->dev.dev = &intf->dev;
        wacom->usbdev = dev;
 
        endpoint = &intf->altsetting[0].endpoint[0].desc;
index c1e1724c6f61d26c218c7822f1f6523c93100153..cf75afeea55879da45a2be34870bbefd2ea05566 100644 (file)
@@ -267,6 +267,7 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id
        xpad->dev.id.vendor = udev->descriptor.idVendor;
        xpad->dev.id.product = udev->descriptor.idProduct;
        xpad->dev.id.version = udev->descriptor.bcdDevice;
+       xpad->dev.dev = &intf->dev;
        xpad->dev.private = xpad;
        xpad->dev.name = xpad_device[i].name;
        xpad->dev.phys = xpad->phys;