Changeset 567a3e2 in mainline for uspace/drv/uhci-hcd/uhci.c


Ignore:
Timestamp:
2011-05-27T13:08:51Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
151293d, 6bbbcabe, e56b8a3
Parents:
c28b3a5 (diff), ed0cc81 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Const and whitespace fixes, reduce debug output level on interrupt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/uhci.c

    rc28b3a5 r567a3e2  
    6161} uhci_t;
    6262
    63 static inline uhci_t * dev_to_uhci(ddf_dev_t *dev)
     63static inline uhci_t * dev_to_uhci(const ddf_dev_t *dev)
    6464{
    6565        assert(dev);
     
    7777{
    7878        assert(dev);
    79         uhci_t *uhci = dev->driver_data;
    80         assert(uhci);
     79        uhci_t *uhci = dev_to_uhci(dev);
    8180        hc_t *hc = &uhci->hc;
    82         uint16_t status = IPC_GET_ARG1(*call);
     81        const uint16_t status = IPC_GET_ARG1(*call);
    8382        assert(hc);
    8483        hc_interrupt(hc, status);
    8584}
     85/*----------------------------------------------------------------------------*/
     86/** Operations supported by the HC driver */
     87static ddf_dev_ops_t hc_ops = {
     88        .interfaces[USBHC_DEV_IFACE] = &hc_iface, /* see iface.h/c */
     89};
    8690/*----------------------------------------------------------------------------*/
    8791/** Get address of the device identified by handle.
     
    115119 * @return Error code.
    116120 */
    117 static int usb_iface_get_hc_handle(
    118     ddf_fun_t *fun, devman_handle_t *handle)
     121static int usb_iface_get_hc_handle(ddf_fun_t *fun, devman_handle_t *handle)
    119122{
    120123        assert(fun);
     
    131134        .get_hc_handle = usb_iface_get_hc_handle,
    132135        .get_address = usb_iface_get_address
    133 };
    134 /*----------------------------------------------------------------------------*/
    135 /** Operations supported by the HC driver */
    136 static ddf_dev_ops_t hc_ops = {
    137         .interfaces[USBHC_DEV_IFACE] = &hc_iface, /* see iface.h/c */
    138136};
    139137/*----------------------------------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.