Changeset a8def7d in mainline


Ignore:
Timestamp:
2011-03-10T19:26:16Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6e3b9a58, 9d9ffdd
Parents:
e69f10b
Message:

Small fixex

Location:
uspace/drv/usbhid
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/kbddev.c

    re69f10b ra8def7d  
    459459                        usbhid_kbd_push_ev(kbd_dev, KEY_PRESS, key);
    460460                        usbhid_kbd_repeat_start(kbd_dev, key);
    461                 } else {size_t
     461                } else {
    462462                        // found, nothing happens
    463463                }
     
    502502
    503503        usb_log_debug("Got keys from parser: %s\n",
    504             usb_debug_str_buffer(key_codes, kbd_dev->key_count, 0));
     504            usb_debug_str_buffer(key_codes, count, 0));
    505505       
    506506        if (count != kbd_dev->key_count) {
     
    535535                                    uint8_t *buffer, size_t actual_size)
    536536{
     537        assert(kbd_dev->initialized);
     538        assert(kbd_dev->hid_dev->parser != NULL);
     539       
    537540        usb_hid_report_in_callbacks_t *callbacks =
    538541            (usb_hid_report_in_callbacks_t *)malloc(
     
    617620        }
    618621
    619         usb_hid_free_report_parser((*kbd_dev)->parser);
    620        
    621622        free(*kbd_dev);
    622623        *kbd_dev = NULL;
  • uspace/drv/usbhid/kbddev.h

    re69f10b ra8def7d  
    100100        /** Mutex for accessing the information about auto-repeat. */
    101101        fibril_mutex_t *repeat_mtx;
    102 
    103         usb_hid_report_parser_t *parser;
    104102       
    105103        /** State of the structure (for checking before use). */
Note: See TracChangeset for help on using the changeset viewer.