usb-hid: remove usb_hid_datain_cb

No users left, all migrated over to hw/hid.[ch].
Yea!  Zap it!

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2011-08-10 10:53:50 +02:00
parent 4c15ba9cc9
commit f3aaaa242e
2 changed files with 0 additions and 17 deletions

View File

@ -45,8 +45,6 @@
typedef struct USBHIDState { typedef struct USBHIDState {
USBDevice dev; USBDevice dev;
HIDState hid; HIDState hid;
void *datain_opaque;
void (*datain)(void *);
} USBHIDState; } USBHIDState;
enum { enum {
@ -362,10 +360,6 @@ static void usb_hid_changed(HIDState *hs)
{ {
USBHIDState *us = container_of(hs, USBHIDState, hid); USBHIDState *us = container_of(hs, USBHIDState, hid);
if (us->datain) {
us->datain(us->datain_opaque);
}
usb_wakeup(&us->dev); usb_wakeup(&us->dev);
} }
@ -533,14 +527,6 @@ static int usb_keyboard_initfn(USBDevice *dev)
return usb_hid_initfn(dev, HID_KEYBOARD); return usb_hid_initfn(dev, HID_KEYBOARD);
} }
void usb_hid_datain_cb(USBDevice *dev, void *opaque, void (*datain)(void *))
{
USBHIDState *s = (USBHIDState *)dev;
s->datain_opaque = opaque;
s->datain = datain;
}
static const VMStateDescription vmstate_usb_ptr = { static const VMStateDescription vmstate_usb_ptr = {
.name = "usb-ptr", .name = "usb-ptr",
.version_id = 1, .version_id = 1,

View File

@ -316,9 +316,6 @@ USBDevice *usb_host_device_open(const char *devname);
int usb_host_device_close(const char *devname); int usb_host_device_close(const char *devname);
void usb_host_info(Monitor *mon); void usb_host_info(Monitor *mon);
/* usb-hid.c */
void usb_hid_datain_cb(USBDevice *dev, void *opaque, void (*datain)(void *));
/* usb-bt.c */ /* usb-bt.c */
USBDevice *usb_bt_init(HCIInfo *hci); USBDevice *usb_bt_init(HCIInfo *hci);