]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - drivers/tty/n_r3964.c
vfs: do bulk POLL* -> EPOLL* replacement
[zynq/linux.git] / drivers / tty / n_r3964.c
index e81d3db8ad6329df7d6d9d25e2c94e026fbaf67a..dbf1ab36758ebd6404e97a2fb0fbc4273f6c0460 100644 (file)
@@ -1223,7 +1223,7 @@ static __poll_t r3964_poll(struct tty_struct *tty, struct file *file,
        struct r3964_client_info *pClient;
        struct r3964_message *pMsg = NULL;
        unsigned long flags;
-       __poll_t result = POLLOUT;
+       __poll_t result = EPOLLOUT;
 
        TRACE_L("POLL");
 
@@ -1234,7 +1234,7 @@ static __poll_t r3964_poll(struct tty_struct *tty, struct file *file,
                pMsg = pClient->first_msg;
                spin_unlock_irqrestore(&pInfo->lock, flags);
                if (pMsg)
-                       result |= POLLIN | POLLRDNORM;
+                       result |= EPOLLIN | EPOLLRDNORM;
        } else {
                result = -EINVAL;
        }