Ignore:
Timestamp:
2012-02-24T19:07:44Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a76b01b4
Parents:
5837c7a
Message:

usb drivers: remove optical separators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhid/mouse/mousedev.c

    r5837c7a r76fbd9a  
    5858static ddf_dev_ops_t ops = { .default_handler = default_connection_handler };
    5959
    60 /*----------------------------------------------------------------------------*/
     60
    6161const usb_endpoint_description_t usb_hid_mouse_poll_endpoint_description = {
    6262        .transfer_type = USB_TRANSFER_INTERRUPT,
     
    7474static const uint8_t IDLE_RATE = 0;
    7575
    76 /*----------------------------------------------------------------------------*/
     76
    7777static const uint8_t USB_MOUSE_BOOT_REPORT_DESCRIPTOR[] = {
    7878        0x05, 0x01,                    // USAGE_PAGE (Generic Desktop)
     
    104104};
    105105
    106 /*----------------------------------------------------------------------------*/
     106
    107107
    108108/** Default handler for IPC methods not handled by DDF.
     
    146146        }
    147147}
    148 /*----------------------------------------------------------------------------*/
     148
    149149static int get_mouse_axis_move_value(uint8_t rid, usb_hid_report_t *report,
    150150    int32_t usage)
     
    245245        return true;
    246246}
    247 /*----------------------------------------------------------------------------*/
     247
    248248#define FUN_UNBIND_DESTROY(fun) \
    249249if (fun) { \
     
    256256        } \
    257257} else (void)0
    258 /*----------------------------------------------------------------------------*/
     258
    259259static int usb_mouse_create_function(usb_hid_dev_t *hid_dev, usb_mouse_t *mouse)
    260260{
     
    337337        return highest_button;
    338338}
    339 /*----------------------------------------------------------------------------*/
     339
    340340int usb_mouse_init(usb_hid_dev_t *hid_dev, void **data)
    341341{
     
    387387        return EOK;
    388388}
    389 /*----------------------------------------------------------------------------*/
     389
    390390bool usb_mouse_polling_callback(usb_hid_dev_t *hid_dev, void *data)
    391391{
     
    400400        return usb_mouse_process_report(hid_dev, mouse_dev);
    401401}
    402 /*----------------------------------------------------------------------------*/
     402
    403403void usb_mouse_deinit(usb_hid_dev_t *hid_dev, void *data)
    404404{
     
    421421        free(mouse_dev);
    422422}
    423 /*----------------------------------------------------------------------------*/
     423
    424424int usb_mouse_set_boot_protocol(usb_hid_dev_t *hid_dev)
    425425{
Note: See TracChangeset for help on using the changeset viewer.