Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/devpoll.c

    r8d2dd7f2 r33b8d024  
    7777 * @return Always EOK.
    7878 */
    79 static int polling_fibril(void *arg)
     79static errno_t polling_fibril(void *arg)
    8080{
    8181        assert(arg);
    82         const polling_data_t *data = arg;
     82        polling_data_t *data = arg;
    8383        /* Helper to reduce typing. */
    8484        const usb_device_auto_polling_t *params = &data->auto_polling;
     
    102102        while (failed_attempts <= params->max_failures) {
    103103                size_t actual_size;
    104                 const int rc = usb_pipe_read(pipe, data->buffer,
     104                const errno_t rc = usb_pipe_read(pipe, data->buffer,
    105105                    data->request_size, &actual_size);
    106106
     
    206206 * @retval EOK New fibril polling the device was already started.
    207207 */
    208 static int usb_device_auto_polling_internal(usb_device_t *dev,
     208static errno_t usb_device_auto_polling_internal(usb_device_t *dev,
    209209    usb_endpoint_mapping_t *epm, const usb_device_auto_polling_t *polling,
    210210    size_t request_size)
     
    275275 * @retval EOK New fibril polling the device was already started.
    276276 */
    277 int usb_device_auto_polling(usb_device_t *usb_dev, usb_endpoint_t ep,
     277errno_t usb_device_auto_polling(usb_device_t *usb_dev, usb_endpoint_t ep,
    278278    const usb_device_auto_polling_t *polling, size_t req_size)
    279279{
     
    301301 * @retval EOK New fibril polling the device was already started.
    302302 */
    303 int usb_device_auto_poll(usb_device_t *dev, usb_endpoint_t ep,
     303errno_t usb_device_auto_poll(usb_device_t *dev, usb_endpoint_t ep,
    304304    usb_polling_callback_t callback, size_t request_size, int delay,
    305305    usb_polling_terminted_callback_t terminated_callback, void *arg)
     
    321321}
    322322
    323 int usb_device_auto_polling_desc(usb_device_t *usb_dev,
     323errno_t usb_device_auto_polling_desc(usb_device_t *usb_dev,
    324324    const usb_endpoint_description_t *desc,
    325325    const usb_device_auto_polling_t *polling, size_t req_size)
     
    330330}
    331331
    332 int usb_device_auto_poll_desc(usb_device_t * usb_dev,
     332errno_t usb_device_auto_poll_desc(usb_device_t * usb_dev,
    333333    const usb_endpoint_description_t *desc, usb_polling_callback_t callback,
    334334    size_t req_size, int delay,
Note: See TracChangeset for help on using the changeset viewer.