Changeset 58563585 in mainline for uspace/drv/bus/usb/vhc


Ignore:
Timestamp:
2016-08-31T11:15:39Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
10cb47e
Parents:
7a67416
Message:

code review and cstyle cleanup (no change in functionality)

Location:
uspace/drv/bus/usb/vhc
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/vhc/devconn.c

    r7a67416 r58563585  
    9595}
    9696
    97 int vhc_virtdev_plug_hub(vhc_data_t *vhc, usbvirt_device_t *dev, uintptr_t *handle, usb_address_t address)
     97int vhc_virtdev_plug_hub(vhc_data_t *vhc, usbvirt_device_t *dev,
     98    uintptr_t *handle, usb_address_t address)
    9899{
    99100        return vhc_virtdev_plug_generic(vhc, NULL, dev, handle, false, address);
  • uspace/drv/bus/usb/vhc/hub/virthub.c

    r7a67416 r58563585  
    3333 * @brief
    3434 */
     35
    3536#include <usb/classes/classes.h>
    3637#include <usb/classes/hub.h>
  • uspace/drv/bus/usb/vhc/hub/virthub.h

    r7a67416 r58563585  
    3333 * @brief USB hub as a virtual USB device.
    3434 */
     35
    3536#ifndef VHC_HUB_VIRTHUB_H_
    3637#define VHC_HUB_VIRTHUB_H_
     
    8687
    8788#endif
     89
    8890/**
    8991 * @}
  • uspace/drv/bus/usb/vhc/hub/virthubops.c

    r7a67416 r58563585  
    3333 * @brief Virtual USB hub operations.
    3434 */
     35
    3536#include <errno.h>
    3637#include <usb/classes/hub.h>
  • uspace/drv/bus/usb/vhc/main.c

    r7a67416 r58563585  
    4343#include <usb/debug.h>
    4444#include "vhcd.h"
    45 
    4645
    4746static ddf_dev_ops_t vhc_ops = {
  • uspace/drv/bus/usb/vhc/transfer.c

    r7a67416 r58563585  
    233233                if (rc == EOK) {
    234234                        if (is_set_address_transfer(transfer)) {
    235                                 usb_device_request_setup_packet_t *setup
    236                                     = (void*)transfer->batch->setup_buffer;
     235                                usb_device_request_setup_packet_t *setup =
     236                                    (void*) transfer->batch->setup_buffer;
    237237                                dev->address = setup->value;
    238238                                usb_log_debug2("Address changed to %d\n",
  • uspace/drv/bus/usb/vhc/vhcd.h

    r7a67416 r58563585  
    3333 * @brief Virtual USB host controller common definitions.
    3434 */
     35
    3536#ifndef VHCD_VHCD_H_
    3637#define VHCD_VHCD_H_
     
    4142
    4243#include <usb/host/hcd.h>
    43 
    4444
    4545#define NAME "vhc"
     
    6767} vhc_transfer_t;
    6868
    69 
    7069void on_client_close(ddf_fun_t *fun);
    7170void default_connection_handler(ddf_fun_t *fun, ipc_callid_t icallid,
     
    8281
    8382#endif
     83
    8484/**
    8585 * @}
Note: See TracChangeset for help on using the changeset viewer.