Changeset 85bf12ba in mainline


Ignore:
Timestamp:
2017-12-20T14:43:31Z (6 years ago)
Author:
Petr Mánek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
15f8079
Parents:
bd1fab90
git-author:
Petr Mánek <petr.manek@…> (2017-12-20 14:42:12)
git-committer:
Petr Mánek <petr.manek@…> (2017-12-20 14:43:31)
Message:

usbdiag: coupled endpoint numbers with endpoint specs for usbdev

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbdiag/main.c

    rbd1fab90 r85bf12ba  
    175175
    176176static const usb_endpoint_description_t *diag_endpoints[] = {
    177         &intr_in_ep,
    178         &intr_out_ep,
    179         &bulk_in_ep,
    180         &bulk_out_ep,
    181         &isoch_in_ep,
    182         &isoch_out_ep,
     177        [USB_DIAG_EP_INTR_IN] = &intr_in_ep,
     178        [USB_DIAG_EP_INTR_OUT] = &intr_out_ep,
     179        [USB_DIAG_EP_BULK_IN] = &bulk_in_ep,
     180        [USB_DIAG_EP_BULK_OUT] = &bulk_out_ep,
     181        [USB_DIAG_EP_ISOCH_IN] = &isoch_in_ep,
     182        [USB_DIAG_EP_ISOCH_OUT] = &isoch_out_ep,
    183183        NULL
    184184};
     
    197197        .name = NAME,
    198198        .ops = &diag_driver_ops,
    199         .endpoints = diag_endpoints
     199        .endpoints = &diag_endpoints[1] /* EPs are indexed from 1. */
    200200};
    201201
Note: See TracChangeset for help on using the changeset viewer.