Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 4939490 in mainline for uspace/drv/usbhid/generic/hiddev.c


Ignore:
Timestamp:
2011-05-20T10:23:26Z (11 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master
Children:
d1fb591
Parents:
d09f3720
Message:

Removed generic subdriver from mappings + some debug output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/generic/hiddev.c

    rd09f3720 r4939490  
    8383static size_t usb_generic_hid_get_event_length(ddf_fun_t *fun)
    8484{
     85        usb_log_debug("Generic HID: Get event length.\n");
     86       
    8587        if (fun == NULL || fun->driver_data) {
    8688                return 0;
     
    9799    size_t size, size_t *act_size, unsigned int flags)
    98100{
     101        usb_log_debug("Generic HID: Get event.\n");
     102       
    99103        if (fun == NULL || fun->driver_data) {
    100104                return EINVAL;
     
    128132static int usb_generic_hid_client_connected(ddf_fun_t *fun)
    129133{
     134        usb_log_debug("Generic HID: Client connected.\n");
    130135        usb_hid_report_received();
    131136        return EOK;
     
    145150                return ENOMEM;
    146151        }
     152       
     153        fun->ops = &usb_generic_hid_ops;
     154        fun->driver_data = hid_dev;
    147155
    148156        int rc = ddf_fun_bind(fun);
     
    154162        }
    155163       
    156         fun->ops = &usb_generic_hid_ops;
    157         fun->driver_data = hid_dev;
     164        usb_log_debug("HID function created. Handle: %d\n", fun->handle);
    158165       
    159166        return EOK;
Note: See TracChangeset for help on using the changeset viewer.