Changeset cc29622 in mainline for uspace/drv/bus/usb/usbhid/main.c


Ignore:
Timestamp:
2011-10-14T12:40:31Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e5024111
Parents:
3002434
Message:

usbhid: Remove tabs on empty lines. diff -w shows no changes.

File:
1 edited

Legend:

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

    r3002434 rcc29622  
    7676{
    7777        assert(dev != NULL);
    78        
     78
    7979        /*
    8080         * Initialize device (get and process descriptors, get address, etc.)
    8181         */
    8282        usb_log_debug("Initializing USB/HID device...\n");
    83        
     83
    8484        usb_hid_dev_t *hid_dev = usb_hid_new();
    8585        if (hid_dev == NULL) {
     
    8888                return ENOMEM;
    8989        }
    90        
     90
    9191        int rc = usb_hid_init(hid_dev, dev);
    92        
     92
    9393        if (rc != EOK) {
    9494                usb_log_error("Failed to initialize USB/HID device.\n");
     
    9696                return rc;
    9797        }       
    98        
     98
    9999        usb_log_debug("USB/HID device structure initialized.\n");
    100        
     100
    101101        /*
    102102         * 1) subdriver vytvori vlastnu ddf_fun, vlastne ddf_dev_ops, ktore da
     
    109109         *    pouzit usb/classes/hid/iface.h - prvy int je telefon
    110110         */
    111        
     111
    112112        /* Start automated polling function.
    113113         * This will create a separate fibril that will query the device
     
    125125           /* Custom argument. */
    126126           hid_dev);
    127        
    128        
     127
     128
    129129        if (rc != EOK) {
    130130                usb_log_error("Failed to start polling fibril for `%s'.\n",
     
    153153{
    154154        usb_log_debug("usb_hid_device_add()\n");
    155        
     155
    156156        if (dev == NULL) {
    157157                usb_log_warning("Wrong parameter given for add_device().\n");
    158158                return EINVAL;
    159159        }
    160        
     160
    161161        if (dev->interface_no < 0) {
    162162                usb_log_warning("Device is not a supported HID device.\n");
     
    165165                return ENOTSUP;
    166166        }
    167        
     167
    168168        int rc = usb_hid_try_add_device(dev);
    169        
     169
    170170        if (rc != EOK) {
    171171                usb_log_warning("Device is not a supported HID device.\n");
     
    174174                return rc;
    175175        }
    176        
     176
    177177        usb_log_info("HID device `%s' ready to use.\n", dev->ddf_dev->name);
    178178
Note: See TracChangeset for help on using the changeset viewer.