Changeset f2d88f3 in mainline for uspace/drv/hid/ps2mouse/ps2mouse.c


Ignore:
Timestamp:
2019-01-04T21:22:17Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
af7b85b
Parents:
06412ba
Message:

Add forgotten changes to enable non-blocking chardev read

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/ps2mouse/ps2mouse.c

    r06412ba rf2d88f3  
    7777        uint8_t data = 0; \
    7878        size_t nread; \
    79         const errno_t rc = chardev_read((mouse)->chardev, &data, 1, &nread); \
     79        const errno_t rc = chardev_read((mouse)->chardev, &data, 1, &nread, \
     80            chardev_f_none); \
    8081        if (rc != EOK) { \
    8182                ddf_msg(LVL_ERROR, "Failed reading byte: %s", str_error_name(rc));\
     
    184185
    185186        size_t nread;
    186         rc = chardev_read(mouse->chardev, &report, 1, &nread);
     187        rc = chardev_read(mouse->chardev, &report, 1, &nread, chardev_f_none);
    187188        if (rc != EOK || report != PS2_MOUSE_ACK) {
    188189                ddf_msg(LVL_ERROR, "Failed to confirm data reporting: %hhx.",
     
    232233        while (pos < psize) {
    233234                rc = chardev_read(mouse->chardev, pbuf + pos, psize - pos,
    234                     &nread);
     235                    &nread, chardev_f_none);
    235236                if (rc != EOK) {
    236237                        ddf_msg(LVL_WARN, "Error reading packet.");
Note: See TracChangeset for help on using the changeset viewer.