Changeset 2e38385 in mainline for uspace/drv/uhci/root_hub/port.c


Ignore:
Timestamp:
2011-01-14T14:51:14Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
76c40eb
Parents:
f9dd44d
Message:

code-style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci/root_hub/port.c

    rf9dd44d r2e38385  
    3232                uhci_print_info("Port(%d) status %#.4x:\n",
    3333                  port_instance->number, port_status);
    34                 print_port_status( port_status );
     34                print_port_status(port_status);
    3535
    3636                if (port_status & STATUS_CONNECTED_CHANGED) {
     
    5151        assert(port->hc);
    5252
    53 
    5453        uhci_print_info("Adding new device on port %d.\n", port->number);
    5554
     
    6766
    6867        /* enable port */
    69         uhci_port_set_enabled( port, true );
     68        uhci_port_set_enabled(port, true);
    7069
    7170        /* assign address to device */
    72         int ret = usb_drv_req_set_address( port->hc_phone, 0, usb_address );
     71        int ret = usb_drv_req_set_address(port->hc_phone, 0, usb_address);
    7372
    7473
     
    9594        }
    9695
    97 
    9896        return EOK;
    9997}
     
    10199static int uhci_port_remove_device(uhci_port_t *port)
    102100{
    103         uhci_print_error(       "Don't know how to remove device %#x.\n",
     101        uhci_print_error("Don't know how to remove device %#x.\n",
    104102                port->attached_device);
    105103        uhci_port_set_enabled(port, false);
     
    121119                port_status &= ~STATUS_ENABLED;
    122120        }
    123         port_status_write( port->address, port_status );
     121        port_status_write(port->address, port_status);
    124122
    125         uhci_print_info( "%s port %d.\n",
    126           enabled ? "Enabled" : "Disabled", port->number );
     123        uhci_print_info("%s port %d.\n",
     124          enabled ? "Enabled" : "Disabled", port->number);
    127125        return EOK;
    128126}
Note: See TracChangeset for help on using the changeset viewer.