Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/ar9271/ath_usb.c

    rb7fd2a0 r38d150e  
    3939#include "ath_usb.h"
    4040
    41 static errno_t ath_usb_send_ctrl_message(ath_t *, void *, size_t);
    42 static errno_t ath_usb_read_ctrl_message(ath_t *, void *, size_t, size_t *);
    43 static errno_t ath_usb_send_data_message(ath_t *, void *, size_t);
    44 static errno_t ath_usb_read_data_message(ath_t *, void *, size_t, size_t *);
     41static int ath_usb_send_ctrl_message(ath_t *, void *, size_t);
     42static int ath_usb_read_ctrl_message(ath_t *, void *, size_t, size_t *);
     43static int ath_usb_send_data_message(ath_t *, void *, size_t);
     44static int ath_usb_read_data_message(ath_t *, void *, size_t, size_t *);
    4545
    4646static ath_ops_t ath_usb_ops = {
     
    5656 * @param usb_device  Connected USB device.
    5757 *
    58  * @return EOK if succeed, error code otherwise.
     58 * @return EOK if succeed, negative error code otherwise.
    5959 *
    6060 */
    61 errno_t ath_usb_init(ath_t *ath, usb_device_t *usb_device)
     61int ath_usb_init(ath_t *ath, usb_device_t *usb_device)
    6262{
    6363        ath_usb_t *ath_usb = malloc(sizeof(ath_usb_t));
     
    9191 * @param buffer_size Buffer size.
    9292 *
    93  * @return EOK if succeed, error code otherwise.
     93 * @return EOK if succeed, negative error code otherwise.
    9494 *
    9595 */
    96 static errno_t ath_usb_send_ctrl_message(ath_t *ath, void *buffer,
     96static int ath_usb_send_ctrl_message(ath_t *ath, void *buffer,
    9797    size_t buffer_size)
    9898{
     
    111111 * @param transferred_size Real size of read data.
    112112 *
    113  * @return EOK if succeed, error code otherwise.
     113 * @return EOK if succeed, negative error code otherwise.
    114114 *
    115115 */
    116 static errno_t ath_usb_read_ctrl_message(ath_t *ath, void *buffer,
     116static int ath_usb_read_ctrl_message(ath_t *ath, void *buffer,
    117117    size_t buffer_size, size_t *transferred_size)
    118118{
     
    130130 * @param buffer_size Buffer size.
    131131 *
    132  * @return EOK if succeed, error code otherwise.
     132 * @return EOK if succeed, negative error code otherwise.
    133133 *
    134134 */
    135 static errno_t ath_usb_send_data_message(ath_t *ath, void *buffer,
     135static int ath_usb_send_data_message(ath_t *ath, void *buffer,
    136136    size_t buffer_size)
    137137{
     
    151151            ath_usb->usb_device, ath_usb->output_data_pipe_number)->pipe;
    152152       
    153         errno_t ret_val = usb_pipe_write(pipe, complete_buffer,
     153        int ret_val = usb_pipe_write(pipe, complete_buffer,
    154154            complete_buffer_size);
    155155       
     
    166166 * @param transferred_size Real size of read data.
    167167 *
    168  * @return EOK if succeed, error code otherwise.
     168 * @return EOK if succeed, negative error code otherwise.
    169169 *
    170170 */
    171 static errno_t ath_usb_read_data_message(ath_t *ath, void *buffer,
     171static int ath_usb_read_data_message(ath_t *ath, void *buffer,
    172172    size_t buffer_size, size_t *transferred_size)
    173173{
Note: See TracChangeset for help on using the changeset viewer.