diff options
-rw-r--r-- | drivers/hid/hidraw.c | 2 | ||||
-rw-r--r-- | drivers/hid/usbhid/hiddev.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index 62ef47a730b0..bbc6ec1aa5cb 100644 --- a/drivers/hid/hidraw.c +++ b/drivers/hid/hidraw.c | |||
@@ -252,7 +252,7 @@ static __poll_t hidraw_poll(struct file *file, poll_table *wait) | |||
252 | 252 | ||
253 | poll_wait(file, &list->hidraw->wait, wait); | 253 | poll_wait(file, &list->hidraw->wait, wait); |
254 | if (list->head != list->tail) | 254 | if (list->head != list->tail) |
255 | return EPOLLIN | EPOLLRDNORM; | 255 | return EPOLLIN | EPOLLRDNORM | EPOLLOUT; |
256 | if (!list->hidraw->exist) | 256 | if (!list->hidraw->exist) |
257 | return EPOLLERR | EPOLLHUP; | 257 | return EPOLLERR | EPOLLHUP; |
258 | return 0; | 258 | return 0; |
diff --git a/drivers/hid/usbhid/hiddev.c b/drivers/hid/usbhid/hiddev.c index 4e11cc6fc34b..1f9bc4483465 100644 --- a/drivers/hid/usbhid/hiddev.c +++ b/drivers/hid/usbhid/hiddev.c | |||
@@ -428,7 +428,7 @@ static __poll_t hiddev_poll(struct file *file, poll_table *wait) | |||
428 | 428 | ||
429 | poll_wait(file, &list->hiddev->wait, wait); | 429 | poll_wait(file, &list->hiddev->wait, wait); |
430 | if (list->head != list->tail) | 430 | if (list->head != list->tail) |
431 | return EPOLLIN | EPOLLRDNORM; | 431 | return EPOLLIN | EPOLLRDNORM | EPOLLOUT; |
432 | if (!list->hiddev->exist) | 432 | if (!list->hiddev->exist) |
433 | return EPOLLERR | EPOLLHUP; | 433 | return EPOLLERR | EPOLLHUP; |
434 | return 0; | 434 | return 0; |