Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c11372da authored by Vincent Vanackere's avatar Vincent Vanackere Committed by Greg Kroah-Hartman
Browse files

[PATCH] USB: fix atiremote input doesn`t register `device` & `driver` section...


[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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 16367877
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -654,6 +654,7 @@ static void ati_remote_input_init(struct ati_remote *ati_remote)
	idev->id.vendor = le16_to_cpu(ati_remote->udev->descriptor.idVendor);
	idev->id.vendor = le16_to_cpu(ati_remote->udev->descriptor.idVendor);
	idev->id.product = le16_to_cpu(ati_remote->udev->descriptor.idProduct);
	idev->id.product = le16_to_cpu(ati_remote->udev->descriptor.idProduct);
	idev->id.version = le16_to_cpu(ati_remote->udev->descriptor.bcdDevice);
	idev->id.version = le16_to_cpu(ati_remote->udev->descriptor.bcdDevice);
	idev->dev = &(ati_remote->udev->dev);
}
}


static int ati_remote_initialize(struct ati_remote *ati_remote)
static int ati_remote_initialize(struct ati_remote *ati_remote)