diff options
author | Viktor A. Danilov <__die@mail.ru> | 2005-04-18 20:39:35 -0400 |
---|---|---|
committer | Greg K-H <gregkh@suse.de> | 2005-04-18 20:39:35 -0400 |
commit | e838a0d4d5260bce452c96914a6e86b217c53c55 (patch) | |
tree | bafe9c348e895fa62874564deea245db4e42da2f /drivers/usb/input/aiptek.c | |
parent | 6cdee106e7571751ecc0e9f96606322f88b64a8d (diff) |
[PATCH] USB: fix AIPTEK input doesn`t register `device` & `driver` section in sysfs (/sys/class/input/event#)
PROBLEM: aiptek input doesn`t register `device` & `driver` section in sysfs (/sys/class/input/event#)
REASON: `dev` - field not filled...
SOLUTION: in linux/drivers/usb/input/aiptek.c write
aiptek->inputdev.dev = &intf->dev;
before calling
input_register_device(&aiptek->inputdev);
From: "Viktor A. Danilov" <__die@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Index: gregkh-2.6/drivers/usb/input/aiptek.c
===================================================================
Diffstat (limited to 'drivers/usb/input/aiptek.c')
-rw-r--r-- | drivers/usb/input/aiptek.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/input/aiptek.c b/drivers/usb/input/aiptek.c index d7fea9ea301b..2d76be62f4e0 100644 --- a/drivers/usb/input/aiptek.c +++ b/drivers/usb/input/aiptek.c | |||
@@ -2138,6 +2138,7 @@ aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
2138 | aiptek->inputdev.id.vendor = le16_to_cpu(usbdev->descriptor.idVendor); | 2138 | aiptek->inputdev.id.vendor = le16_to_cpu(usbdev->descriptor.idVendor); |
2139 | aiptek->inputdev.id.product = le16_to_cpu(usbdev->descriptor.idProduct); | 2139 | aiptek->inputdev.id.product = le16_to_cpu(usbdev->descriptor.idProduct); |
2140 | aiptek->inputdev.id.version = le16_to_cpu(usbdev->descriptor.bcdDevice); | 2140 | aiptek->inputdev.id.version = le16_to_cpu(usbdev->descriptor.bcdDevice); |
2141 | aiptek->inputdev.dev = &intf->dev; | ||
2141 | 2142 | ||
2142 | aiptek->usbdev = usbdev; | 2143 | aiptek->usbdev = usbdev; |
2143 | aiptek->ifnum = intf->altsetting[0].desc.bInterfaceNumber; | 2144 | aiptek->ifnum = intf->altsetting[0].desc.bInterfaceNumber; |