Ignore:
Timestamp:
2011-10-28T22:19:29Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2fd1f0c6
Parents:
48ae3ef
Message:

ohci: Minor improvements.

Remove unused member.
Fix comments.
Add const qualifiers and asserts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/ohci_endpoint.c

    r48ae3ef r57e06ef  
    6565 *
    6666 * @param[in] ep USBD endpoint structure
    67  * @return pointer to a new hcd endpoint structure, NULL on failure.
     67 * @return Error code.
    6868 */
    6969int ohci_endpoint_init(hcd_t *hcd, endpoint_t *ep)
     
    9090        endpoint_set_hc_data(
    9191            ep, ohci_ep, ohci_ep_toggle_get, ohci_ep_toggle_set);
    92         ohci_ep->hcd = hcd;
    9392        hc_enqueue_endpoint(hcd->private_data, ep);
    9493        return EOK;
     
    9796/** Disposes hcd endpoint structure
    9897 *
    99  * @param[in] hcd_ep endpoint structure
     98 * @param[in] hcd driver using this instance.
     99 * @param[in] ep endpoint structure.
    100100 */
    101101void ohci_endpoint_fini(hcd_t *hcd, endpoint_t *ep)
Note: See TracChangeset for help on using the changeset viewer.