Merge branch 'for-5.4/hidraw-hiddev-epoll' into for-linus
[platform/kernel/linux-rpi.git] / drivers / hid / usbhid / hiddev.c
index 4e11cc6..1f9bc44 100644 (file)
@@ -428,7 +428,7 @@ static __poll_t hiddev_poll(struct file *file, poll_table *wait)
 
        poll_wait(file, &list->hiddev->wait, wait);
        if (list->head != list->tail)
-               return EPOLLIN | EPOLLRDNORM;
+               return EPOLLIN | EPOLLRDNORM | EPOLLOUT;
        if (!list->hiddev->exist)
                return EPOLLERR | EPOLLHUP;
        return 0;