aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-input.c
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2006-12-08 12:41:03 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-12-08 13:43:14 -0500
commit4916b3a57fc94664677d439b911b8aaf86c7ec23 (patch)
treefc8038ec52950ddfdb1c6c66f90eb1c381e446ca /drivers/hid/hid-input.c
parent229695e51efc4ed5e04ab471c82591d0f432909d (diff)
[PATCH] Generic HID layer - USB API
- 'dev' in struct hid_device changed from struct usb_device to struct device and fixed all the users - renamed functions which are part of USB HID API from 'hid_*' to 'usbhid_*' - force feedback initialization moved from common part into USB-specific driver - added usbhid.h header for USB HID API users - removed USB-specific fields from struct hid_device and moved them to new usbhid_device, which is pointed to by hid_device->driver_data - fixed all USB users to use this new structure Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r--drivers/hid/hid-input.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 6d3d80ba9582..e542ef971c46 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -798,8 +798,7 @@ int hidinput_connect(struct hid_device *hid)
798 input_dev->id.vendor = hid->vendor; 798 input_dev->id.vendor = hid->vendor;
799 input_dev->id.product = hid->product; 799 input_dev->id.product = hid->product;
800 input_dev->id.version = hid->version; 800 input_dev->id.version = hid->version;
801 input_dev->cdev.dev = &hid->intf->dev; 801 input_dev->cdev.dev = hid->dev;
802
803 hidinput->input = input_dev; 802 hidinput->input = input_dev;
804 list_add_tail(&hidinput->list, &hid->inputs); 803 list_add_tail(&hidinput->list, &hid->inputs);
805 } 804 }
@@ -821,13 +820,8 @@ int hidinput_connect(struct hid_device *hid)
821 } 820 }
822 } 821 }
823 822
824 /* This only gets called when we are a single-input (most of the 823 if (hidinput)
825 * time). IOW, not a HID_QUIRK_MULTI_INPUT. The hid_ff_init() is
826 * only useful in this case, and not for multi-input quirks. */
827 if (hidinput) {
828 hid_ff_init(hid);
829 input_register_device(hidinput->input); 824 input_register_device(hidinput->input);
830 }
831 825
832 return 0; 826 return 0;
833} 827}