Changeset 32ec5671 in mainline for uspace/drv


Ignore:
Timestamp:
2011-10-12T20:31:29Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0d103aef
Parents:
013517b
Message:

usb: Remove unused port_no argument.

Location:
uspace/drv/bus/usb
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhcirh/port.c

    r013517b r32ec5671  
    4545
    4646static int uhci_port_check(void *port);
    47 static int uhci_port_reset_enable(int portno, void *arg);
     47static int uhci_port_reset_enable(void *arg);
    4848static int uhci_port_new_device(uhci_port_t *port, usb_speed_t speed);
    4949static int uhci_port_remove_device(uhci_port_t *port);
     
    213213 * Resets and enables the ub port.
    214214 */
    215 int uhci_port_reset_enable(int portno, void *arg)
     215int uhci_port_reset_enable(void *arg)
    216216{
    217217        uhci_port_t *port = arg;
     
    260260        do {
    261261                ret = usb_hc_new_device_wrapper(port->rh, &port->hc_connection,
    262                     speed, uhci_port_reset_enable, port->number, port,
     262                    speed, uhci_port_reset_enable, port,
    263263                    &port->attached_device.address, NULL, NULL,
    264264                    &port->attached_device.fun);
  • uspace/drv/bus/usb/usbhub/port.c

    r013517b r32ec5671  
    6060    usb_port_status_t status);
    6161static int get_port_status(usb_hub_port_t *port, usb_port_status_t *status);
    62 static int enable_port_callback(int port_no, void *arg);
     62static int enable_port_callback(void *arg);
    6363static int add_device_phase1_worker_fibril(void *arg);
    6464static int create_add_device_fibril(usb_hub_port_t *port, usb_hub_dev_t *hub,
     
    378378 * @return Error code.
    379379 */
    380 static int enable_port_callback(int port_no, void *arg)
     380static int enable_port_callback(void *arg)
    381381{
    382382        usb_hub_port_t *port = arg;
     
    421421
    422422        const int rc = usb_hc_new_device_wrapper(data->hub->usb_device->ddf_dev,
    423             &data->hub->connection, data->speed,
    424             enable_port_callback, (int) data->port->port_number,
     423            &data->hub->connection, data->speed, enable_port_callback,
    425424            data->port, &new_address, NULL, NULL, &child_fun);
    426425
  • uspace/drv/bus/usb/vhc/hub.c

    r013517b r32ec5671  
    8181}
    8282
    83 static int pretend_port_rest(int unused, void *unused2)
     83static int pretend_port_rest(void *unused2)
    8484{
    8585        return EOK;
     
    115115        ddf_fun_t *hub_dev;
    116116        rc = usb_hc_new_device_wrapper(hc_dev->dev, &hc_conn, USB_SPEED_FULL,
    117             pretend_port_rest, 0, NULL, NULL, &rh_ops, hc_dev, &hub_dev);
     117            pretend_port_rest, NULL, NULL, &rh_ops, hc_dev, &hub_dev);
    118118        if (rc != EOK) {
    119119                usb_log_fatal("Failed to create root hub: %s.\n",
Note: See TracChangeset for help on using the changeset viewer.