From 309df849b8ad3772b912d498eacda9f38a6e4f1e Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Fri, 18 Jun 2010 01:39:40 +0200 Subject: Correct semantic error in mtdev_idle The current semantics, that a non-empty conversion pipe means the device is not idle, is not very useful. This patch changes the semantics to simply checking if the fetch buffer is empty, and if there are no events to fetch from the device. Signed-off-by: Henrik Rydberg --- include/mtdev.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/mtdev.h') diff --git a/include/mtdev.h b/include/mtdev.h index 7d442f1..4170512 100644 --- a/include/mtdev.h +++ b/include/mtdev.h @@ -151,8 +151,8 @@ int mtdev_open(struct mtdev *dev, int fd); * @fd: file descriptor of the kernel device * @ms: number of milliseconds to wait for activity * - * Returns true if the device is idle, i.e., there are no buffered - * events and there is nothing to fetch from the kernel device. + * Returns true if the device is idle, i.e., there are no fetched + * events in the pipe and there is nothing to fetch from the device. */ int mtdev_idle(struct mtdev *dev, int fd, int ms); -- cgit v1.2.3