diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-06-18 01:32:43 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-06-18 01:32:43 +0200 |
| commit | c9c4f4cda362679567bc4bc04ffedc5d984e2329 (patch) | |
| tree | eedf4a098d81a959c6c40a294c65302b007d1982 /include/mtdev.h | |
| parent | d4704c0d6d70a2815c5ca12d74ba11cc7be69e20 (diff) | |
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 <rydberg@euromail.se>
Diffstat (limited to 'include/mtdev.h')
| -rw-r--r-- | include/mtdev.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); | |||
| 159 | /** | 159 | /** |
| 160 | * mtdev_fetch - fetch an event from the kernel device | 160 | * mtdev_fetch - fetch an event from the kernel device |
| 161 | * @dev: the mtdev in use | 161 | * @dev: the mtdev in use |
| 162 | * @ev: the kernel input event to fill | ||
| 163 | * @fd: file descriptor of the kernel device | 162 | * @fd: file descriptor of the kernel device |
| 163 | * @ev: the kernel input event to fill | ||
| 164 | * | 164 | * |
| 165 | * Fetch a kernel event from the kernel device. The read operation | 165 | * Fetch a kernel event from the kernel device. The read operation |
| 166 | * behaves as dictated by the file descriptior; if O_NONBLOCK is not | 166 | * 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); | |||
| 169 | * On success, returns the number of events read. Otherwise, a standard | 169 | * On success, returns the number of events read. Otherwise, a standard |
| 170 | * negative error number is returned. | 170 | * negative error number is returned. |
| 171 | */ | 171 | */ |
| 172 | int mtdev_fetch(struct mtdev *dev, struct input_event *ev, int fd); | 172 | int mtdev_fetch(struct mtdev *dev, int fd, struct input_event *ev); |
| 173 | 173 | ||
| 174 | /** | 174 | /** |
| 175 | * mtdev_put - put an event into the converter | 175 | * mtdev_put - put an event into the converter |
