diff options
author | Jiri Kosina <jkosina@suse.cz> | 2006-12-08 12:41:03 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-12-08 13:43:14 -0500 |
commit | 4916b3a57fc94664677d439b911b8aaf86c7ec23 (patch) | |
tree | fc8038ec52950ddfdb1c6c66f90eb1c381e446ca /include/linux | |
parent | 229695e51efc4ed5e04ab471c82591d0f432909d (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 'include/linux')
-rw-r--r-- | include/linux/hid.h | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 0473b45b73b8..fc6f74228da3 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
@@ -410,41 +410,7 @@ struct hid_device { /* device report descriptor */ | |||
410 | unsigned country; /* HID country */ | 410 | unsigned country; /* HID country */ |
411 | struct hid_report_enum report_enum[HID_REPORT_TYPES]; | 411 | struct hid_report_enum report_enum[HID_REPORT_TYPES]; |
412 | 412 | ||
413 | struct usb_device *dev; /* device */ | 413 | struct device *dev; /* device */ |
414 | |||
415 | /* USB specific fields */ | ||
416 | |||
417 | struct usb_interface *intf; /* USB interface */ | ||
418 | int ifnum; /* USB interface number */ | ||
419 | |||
420 | unsigned long iofl; /* I/O flags (CTRL_RUNNING, OUT_RUNNING) */ | ||
421 | struct timer_list io_retry; /* Retry timer */ | ||
422 | unsigned long stop_retry; /* Time to give up, in jiffies */ | ||
423 | unsigned int retry_delay; /* Delay length in ms */ | ||
424 | struct work_struct reset_work; /* Task context for resets */ | ||
425 | |||
426 | unsigned int bufsize; /* URB buffer size */ | ||
427 | |||
428 | struct urb *urbin; /* Input URB */ | ||
429 | char *inbuf; /* Input buffer */ | ||
430 | dma_addr_t inbuf_dma; /* Input buffer dma */ | ||
431 | spinlock_t inlock; /* Input fifo spinlock */ | ||
432 | |||
433 | struct urb *urbctrl; /* Control URB */ | ||
434 | struct usb_ctrlrequest *cr; /* Control request struct */ | ||
435 | dma_addr_t cr_dma; /* Control request struct dma */ | ||
436 | struct hid_control_fifo ctrl[HID_CONTROL_FIFO_SIZE]; /* Control fifo */ | ||
437 | unsigned char ctrlhead, ctrltail; /* Control fifo head & tail */ | ||
438 | char *ctrlbuf; /* Control buffer */ | ||
439 | dma_addr_t ctrlbuf_dma; /* Control buffer dma */ | ||
440 | spinlock_t ctrllock; /* Control fifo spinlock */ | ||
441 | |||
442 | struct urb *urbout; /* Output URB */ | ||
443 | struct hid_report *out[HID_CONTROL_FIFO_SIZE]; /* Output pipe fifo */ | ||
444 | unsigned char outhead, outtail; /* Output pipe fifo head & tail */ | ||
445 | char *outbuf; /* Output buffer */ | ||
446 | dma_addr_t outbuf_dma; /* Output buffer dma */ | ||
447 | spinlock_t outlock; /* Output fifo spinlock */ | ||
448 | 414 | ||
449 | unsigned claimed; /* Claimed by hidinput, hiddev? */ | 415 | unsigned claimed; /* Claimed by hidinput, hiddev? */ |
450 | unsigned quirks; /* Various quirks the device can pull on us */ | 416 | unsigned quirks; /* Various quirks the device can pull on us */ |