Changeset 41ebc36 in mainline for uspace/drv


Ignore:
Timestamp:
2017-12-18T12:32:07Z (8 years ago)
Author:
Petr Mánek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7faf0f0
Parents:
fc338e0
Message:

usbdiag: move contents of libusbdiag to libdrv, registered usbdiag interface into the master routing table, repaired broken references

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

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbdiag/Makefile

    rfc338e0 r41ebc36  
    2929USPACE_PREFIX = ../../../..
    3030
    31 LIBS = usbdiag usbdev usb drv
     31LIBS = usbdev usb drv
    3232
    3333BINARY = usbdiag
  • uspace/drv/bus/usb/usbdiag/device.c

    rfc338e0 r41ebc36  
    3636#include <errno.h>
    3737#include <usb/debug.h>
    38 #include <usb/diag/iface.h>
     38#include <usbdiag_iface.h>
    3939
    4040#include "device.h"
     
    4848}
    4949
    50 static usb_diag_iface_t diag_interface = {
     50static usbdiag_iface_t diag_interface = {
    5151        .test = some_test,
    5252};
  • uspace/drv/bus/usb/usbdiag/main.c

    rfc338e0 r41ebc36  
    3737#include <usb/debug.h>
    3838#include <usb/dev/driver.h>
    39 #include <usb/diag/diag.h>
     39#include <usbdiag_iface.h>
    4040#include <str_error.h>
    4141
     
    6161        }
    6262
    63         if ((rc = ddf_fun_add_to_category(diag_dev->fun, USB_DIAG_CATEGORY))) {
     63        if ((rc = ddf_fun_add_to_category(diag_dev->fun, USBDIAG_CATEGORY))) {
    6464                usb_log_error("Failed add DDF to category '"
    65                     USB_DIAG_CATEGORY "': %s.\n", str_error(rc));
     65                    USBDIAG_CATEGORY "': %s.\n", str_error(rc));
    6666                goto err_bind;
    6767        }
Note: See TracChangeset for help on using the changeset viewer.