Changes in uspace/drv/nic/ar9271/ath_usb.c [58563585:8a64320e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ar9271/ath_usb.c
r58563585 r8a64320e 36 36 #include <usb/debug.h> 37 37 #include <malloc.h> 38 #include <errno.h>39 38 #include "ath_usb.h" 40 39 … … 98 97 { 99 98 ath_usb_t *ath_usb = (ath_usb_t *) ath->specific_data; 100 usb_pipe_t *pipe = &usb_device_get_mapped_ep(101 ath_usb->usb_device, ath_usb->output_ctrl_pipe_number)->pipe;99 usb_pipe_t *pipe = 100 &ath_usb->usb_device->pipes[ath_usb->output_ctrl_pipe_number].pipe; 102 101 103 102 return usb_pipe_write(pipe, buffer, buffer_size); … … 118 117 { 119 118 ath_usb_t *ath_usb = (ath_usb_t *) ath->specific_data; 120 usb_pipe_t *pipe = &usb_device_get_mapped_ep(121 ath_usb->usb_device, ath_usb->input_ctrl_pipe_number)->pipe;119 usb_pipe_t *pipe = 120 &ath_usb->usb_device->pipes[ath_usb->input_ctrl_pipe_number].pipe; 122 121 123 122 return usb_pipe_read(pipe, buffer, buffer_size, transferred_size); … … 148 147 149 148 ath_usb_t *ath_usb = (ath_usb_t *) ath->specific_data; 150 usb_pipe_t *pipe = &usb_device_get_mapped_ep(151 ath_usb->usb_device, ath_usb->output_data_pipe_number)->pipe;149 usb_pipe_t *pipe = 150 &ath_usb->usb_device->pipes[ath_usb->output_data_pipe_number].pipe; 152 151 153 152 int ret_val = usb_pipe_write(pipe, complete_buffer, … … 173 172 { 174 173 ath_usb_t *ath_usb = (ath_usb_t *) ath->specific_data; 175 usb_pipe_t *pipe = &usb_device_get_mapped_ep(176 ath_usb->usb_device, ath_usb->input_data_pipe_number)->pipe;174 usb_pipe_t *pipe = 175 &ath_usb->usb_device->pipes[ath_usb->input_data_pipe_number].pipe; 177 176 178 return usb_pipe_read(pipe, buffer, buffer_size, transferred_size); 177 return usb_pipe_read(pipe, buffer, buffer_size, 178 transferred_size); 179 179 }
Note:
See TracChangeset
for help on using the changeset viewer.