summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.osdl.org>2003-09-06 20:42:30 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-09-06 20:42:30 -0700
commit8ad59647bdaf4c4d7739a262544a4f0b5272eb58 (patch)
tree10e97f8c467385ee644eb4fc806cefe9361afd9c /include/linux
parentf4c7190d92b87521b1b9c676f16ab5cc5e825fbe (diff)
Fix over-eager ioctl number fix. _IOC() does want the sizeof().
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/input.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index 770644b05c59..da49f7ee0f18 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -73,7 +73,7 @@ struct input_absinfo {
#define EVIOCGABS(abs) _IOR('E', 0x40 + abs, struct input_absinfo) /* get abs value/limits */
#define EVIOCSABS(abs) _IOW('E', 0xc0 + abs, struct input_absinfo) /* set abs value/limits */
-#define EVIOCSFF _IOC(_IOC_WRITE, 'E', 0x80, size_t) /* send a force effect to a force feedback device */
+#define EVIOCSFF _IOC(_IOC_WRITE, 'E', 0x80, sizeof(struct ff_effect)) /* send a force effect to a force feedback device */
#define EVIOCRMFF _IOW('E', 0x81, int) /* Erase a force effect */
#define EVIOCGEFFECTS _IOR('E', 0x84, int) /* Report number of effects playable at the same time */