diff options
author | Jiri Kosina <jkosina@suse.cz> | 2007-01-24 05:54:19 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2007-02-05 04:00:40 -0500 |
commit | 7c379146005d277982acde02da44c773de5e7e5a (patch) | |
tree | 8a1bbbdabd357f11ec84e5e793539863139ffa71 /drivers/usb/input/hid-core.c | |
parent | c080d89ad91e98fec0e8fc5f448a1ad899bd85c7 (diff) |
HID: API - fix leftovers of hidinput API in USB HID
hidinput_{open,close}() functions do not belong to usbhid, but
to the generic HID layer. Move them, and fix hooks in struct
hid_device, so that now the callbacks are done to transport-specific
_open() functions, but not input_open() functions.
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/usb/input/hid-core.c')
-rw-r--r-- | drivers/usb/input/hid-core.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/drivers/usb/input/hid-core.c b/drivers/usb/input/hid-core.c index 6938c4e0e5e..0392d0e8d02 100644 --- a/drivers/usb/input/hid-core.c +++ b/drivers/usb/input/hid-core.c | |||
@@ -529,18 +529,6 @@ void usbhid_close(struct hid_device *hid) | |||
529 | usb_kill_urb(usbhid->urbin); | 529 | usb_kill_urb(usbhid->urbin); |
530 | } | 530 | } |
531 | 531 | ||
532 | static int hidinput_open(struct input_dev *dev) | ||
533 | { | ||
534 | struct hid_device *hid = dev->private; | ||
535 | return usbhid_open(hid); | ||
536 | } | ||
537 | |||
538 | static void hidinput_close(struct input_dev *dev) | ||
539 | { | ||
540 | struct hid_device *hid = dev->private; | ||
541 | usbhid_close(hid); | ||
542 | } | ||
543 | |||
544 | #define USB_VENDOR_ID_PANJIT 0x134c | 532 | #define USB_VENDOR_ID_PANJIT 0x134c |
545 | 533 | ||
546 | #define USB_VENDOR_ID_TURBOX 0x062a | 534 | #define USB_VENDOR_ID_TURBOX 0x062a |
@@ -1241,8 +1229,8 @@ static struct hid_device *usb_hid_configure(struct usb_interface *intf) | |||
1241 | usbhid->urbctrl->transfer_dma = usbhid->ctrlbuf_dma; | 1229 | usbhid->urbctrl->transfer_dma = usbhid->ctrlbuf_dma; |
1242 | usbhid->urbctrl->transfer_flags |= (URB_NO_TRANSFER_DMA_MAP | URB_NO_SETUP_DMA_MAP); | 1230 | usbhid->urbctrl->transfer_flags |= (URB_NO_TRANSFER_DMA_MAP | URB_NO_SETUP_DMA_MAP); |
1243 | hid->hidinput_input_event = usb_hidinput_input_event; | 1231 | hid->hidinput_input_event = usb_hidinput_input_event; |
1244 | hid->hidinput_open = hidinput_open; | 1232 | hid->hid_open = usbhid_open; |
1245 | hid->hidinput_close = hidinput_close; | 1233 | hid->hid_close = usbhid_close; |
1246 | #ifdef CONFIG_USB_HIDDEV | 1234 | #ifdef CONFIG_USB_HIDDEV |
1247 | hid->hiddev_hid_event = hiddev_hid_event; | 1235 | hid->hiddev_hid_event = hiddev_hid_event; |
1248 | hid->hiddev_report_event = hiddev_report_event; | 1236 | hid->hiddev_report_event = hiddev_report_event; |