From c9c4f4cda362679567bc4bc04ffedc5d984e2329 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Fri, 18 Jun 2010 01:32:43 +0200 Subject: Rectify argument order in mtdev_fetch The argument order in mtdev_fetch() differs from all other usages involved the file descriptor. Fixed with this patch. 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 e2fdc9d..abb76da 100644 --- a/include/mtdev.h +++ b/include/mtdev.h @@ -159,8 +159,8 @@ int mtdev_idle(struct mtdev *dev, int fd, int ms); /** * mtdev_fetch - fetch an event from the kernel device * @dev: the mtdev in use - * @ev: the kernel input event to fill * @fd: file descriptor of the kernel device + * @ev: the kernel input event to fill * * Fetch a kernel event from the kernel device. The read operation * behaves as dictated by the file descriptior; if O_NONBLOCK is not @@ -169,7 +169,7 @@ int mtdev_idle(struct mtdev *dev, int fd, int ms); * On success, returns the number of events read. Otherwise, a standard * negative error number is returned. */ -int mtdev_fetch(struct mtdev *dev, struct input_event *ev, int fd); +int mtdev_fetch(struct mtdev *dev, int fd, struct input_event *ev); /** * mtdev_put - put an event into the converter -- cgit v1.2.3