Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 29e479f in mainline


Ignore:
Timestamp:
2011-12-11T17:16:41Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
c046942
Parents:
7d5ef94
Message:

libusb: Remove unused function, cleanup includes.

Location:
uspace/lib/usb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/include/usb/hc.h

    r7d5ef94 r29e479f  
    11/*
    22 * Copyright (c) 2011 Vojtech Horky
     3 * Copyright (c) 2011 Jan Vesely
    34 * All rights reserved.
    45 *
     
    2627 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2728 */
    28 
    2929/** @addtogroup libusb
    3030 * @{
     
    3636#define LIBUSB_HC_H_
    3737
    38 #include <sys/types.h>
    39 #include <ipc/devman.h>
    40 #include <ipc/loc.h>
     38#include <devman.h>
    4139#include <ddf/driver.h>
    4240#include <bool.h>
    43 #include <async.h>
    4441#include <fibril_synch.h>
    4542#include <usb/usb.h>
     
    7774
    7875int usb_hc_connection_open(usb_hc_connection_t *);
    79 bool usb_hc_connection_is_open(const usb_hc_connection_t *);
    8076int usb_hc_connection_close(usb_hc_connection_t *);
    8177
  • uspace/lib/usb/src/hc.c

    r7d5ef94 r29e479f  
    2727 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2828 */
    29 
    3029/** @addtogroup libusb
    3130 * @{
     
    3433 * General communication with host controller driver (implementation).
    3534 */
    36 #include <devman.h>
    37 #include <async.h>
    38 #include <dev_iface.h>
     35#include <usb/debug.h>
     36
     37#include <assert.h>
     38#include <errno.h>
    3939#include <usbhc_iface.h>
     40#include <usb/dev.h>
    4041#include <usb/hc.h>
    41 #include <usb/debug.h>
    42 #include <usb/dev.h>
    43 #include <errno.h>
    44 #include <assert.h>
    4542
    4643static int usb_hc_connection_add_ref(usb_hc_connection_t *connection)
     
    133130}
    134131/*----------------------------------------------------------------------------*/
    135 /** Tells whether connection to host controller is opened.
    136  *
    137  * @param connection Connection to the host controller.
    138  * @return Whether connection is opened.
    139  */
    140 bool usb_hc_connection_is_open(const usb_hc_connection_t *connection)
    141 {
    142         assert(connection);
    143         return (connection->hc_sess != NULL);
    144 }
    145 /*----------------------------------------------------------------------------*/
    146132/** Close connection to the host controller.
    147133 *
Note: See TracChangeset for help on using the changeset viewer.