~adam-hraska+lp/helenos/cht-bench

« back to all changes in this revision

Viewing changes to uspace/drv/bus/usb/usbhid/main.c

  • Committer: Adam Hraska
  • Date: 2012-08-08 17:19:28 UTC
  • mfrom: (1574.1.16 rcu-clone)
  • Revision ID: adam.hraska+hos@gmail.com-20120808171928-7gf0fh7pcxxcoaoo
Merged in mainline changes from rcu-clone.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
 
113
113
        return EOK;
114
114
}
115
 
/*----------------------------------------------------------------------------*/
 
115
 
116
116
/**
117
117
 * Callback for a device about to be removed from the driver.
118
118
 *
125
125
        // TODO: Call deinit (stops autorepeat too)
126
126
        return ENOTSUP;
127
127
}
128
 
/*----------------------------------------------------------------------------*/
 
128
 
129
129
/**
130
130
 * Callback for removing a device from the driver.
131
131
 *
151
151
        usb_log_debug2("%s destruction complete.\n", dev->ddf_dev->name);
152
152
        return EOK;
153
153
}
154
 
/*----------------------------------------------------------------------------*/
 
154
 
155
155
/** USB generic driver callbacks */
156
156
static const usb_driver_ops_t usb_hid_driver_ops = {
157
157
        .device_add = usb_hid_device_add,
158
158
        .device_rem = usb_hid_device_rem,
159
159
        .device_gone = usb_hid_device_gone,
160
160
};
161
 
/*----------------------------------------------------------------------------*/
 
161
 
162
162
/** The driver itself. */
163
163
static const usb_driver_t usb_hid_driver = {
164
164
        .name = NAME,
165
165
        .ops = &usb_hid_driver_ops,
166
166
        .endpoints = usb_hid_endpoints
167
167
};
168
 
/*----------------------------------------------------------------------------*/
 
168
 
169
169
int main(int argc, char *argv[])
170
170
{
171
171
        printf(NAME ": HelenOS USB HID driver.\n");