Ignore:
Timestamp:
2011-12-28T13:05:59Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8afeb04
Parents:
295f658
Message:

usbhid: Remove useless structure members. Rename references to console.

File:
1 edited

Legend:

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

    r295f658 r2b621cb  
    5757#define NAME "mouse"
    5858
    59 /*----------------------------------------------------------------------------*/
    60 
     59static void default_connection_handler(ddf_fun_t *, ipc_callid_t, ipc_call_t *);
     60
     61static ddf_dev_ops_t ops = { .default_handler = default_connection_handler };
     62
     63/*----------------------------------------------------------------------------*/
    6164const usb_endpoint_description_t usb_hid_mouse_poll_endpoint_description = {
    6265        .transfer_type = USB_TRANSFER_INTERRUPT,
     
    307310        }
    308311
    309         fun->ops = &mouse->ops;
     312        fun->ops = &ops;
    310313        fun->driver_data = mouse;
    311314
     
    350353         * to the DDF function.
    351354         */
    352         fun->ops = &mouse->ops;
     355        fun->ops = &ops;
    353356        fun->driver_data = mouse;
    354357
     
    458461        }
    459462
    460         // set handler for incoming calls
    461         mouse_dev->ops.default_handler = default_connection_handler;
    462 
    463463        // TODO: how to know if the device supports the request???
    464464        usbhid_req_set_idle(&hid_dev->usb_dev->ctrl_pipe,
Note: See TracChangeset for help on using the changeset viewer.