aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorVincent Vanackere <vincent.vanackere@gmail.com>2005-06-05 06:21:43 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-06-27 17:44:02 -0400
commitc11372da33c9d38cb35867915f15c74778e1a3a4 (patch)
treef5444da8e5a6e4d6ef77123d2a803c45fa446c09 /drivers/usb
parent16367877949a91b11bcc6f37b94d0033388b4256 (diff)
[PATCH] USB: fix atiremote input doesn`t register `device` & `driver` section in sysfs (/sys/class/input/event#)
> On Sun, Apr 10, 2005 at 07:21:28PM +0600, Viktor A. Danilov wrote: > > > > 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); The following (tested) patch fixes the exact same issue with the ATI Remote input driver. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/input/ati_remote.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/input/ati_remote.c b/drivers/usb/input/ati_remote.c
index 860df26323b1..7d30f55ad7bd 100644
--- a/drivers/usb/input/ati_remote.c
+++ b/drivers/usb/input/ati_remote.c
@@ -654,6 +654,7 @@ static void ati_remote_input_init(struct ati_remote *ati_remote)
654 idev->id.vendor = le16_to_cpu(ati_remote->udev->descriptor.idVendor); 654 idev->id.vendor = le16_to_cpu(ati_remote->udev->descriptor.idVendor);
655 idev->id.product = le16_to_cpu(ati_remote->udev->descriptor.idProduct); 655 idev->id.product = le16_to_cpu(ati_remote->udev->descriptor.idProduct);
656 idev->id.version = le16_to_cpu(ati_remote->udev->descriptor.bcdDevice); 656 idev->id.version = le16_to_cpu(ati_remote->udev->descriptor.bcdDevice);
657 idev->dev = &(ati_remote->udev->dev);
657} 658}
658 659
659static int ati_remote_initialize(struct ati_remote *ati_remote) 660static int ati_remote_initialize(struct ati_remote *ati_remote)