tree bafe9c348e895fa62874564deea245db4e42da2f
parent 6cdee106e7571751ecc0e9f96606322f88b64a8d
author Viktor A. Danilov <[EMAIL PROTECTED]> Tue, 19 Apr 2005 07:39:35 -0700
committer Greg K-H <[EMAIL PROTECTED]> Tue, 19 Apr 2005 07:39:35 -0700
[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" <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
Index: gregkh-2.6/drivers/usb/input/aiptek.c
===================================================================
usb/input/aiptek.c | 1 +
1 files changed, 1 insertion(+)
Index: drivers/usb/input/aiptek.c
===================================================================
--- edc75e42c3f3e9bbfecabc12a51b0f6d1bb37930/drivers/usb/input/aiptek.c
(mode:100644 sha1:d7fea9ea301b8931055a035b9286691860174eb3)
+++ bafe9c348e895fa62874564deea245db4e42da2f/drivers/usb/input/aiptek.c
(mode:100644 sha1:2d76be62f4e0f2e040c89c11047e423246d2d9fd)
@@ -2138,6 +2138,7 @@
aiptek->inputdev.id.vendor = le16_to_cpu(usbdev->descriptor.idVendor);
aiptek->inputdev.id.product = le16_to_cpu(usbdev->descriptor.idProduct);
aiptek->inputdev.id.version = le16_to_cpu(usbdev->descriptor.bcdDevice);
+ aiptek->inputdev.dev = &intf->dev;
aiptek->usbdev = usbdev;
aiptek->ifnum = intf->altsetting[0].desc.bInterfaceNumber;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html