summaryrefslogtreecommitdiff
path: root/include/uapi/linux/input.h
diff options
context:
space:
mode:
authorElias Vanderstuyft <elias.vds@gmail.com>2015-09-22 01:59:11 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-10-17 01:32:16 +0300
commit52a9266788324edbbfd45f02cf23440c01ee0432 (patch)
treecd7976c48657e23d357097aa956ee110e6896fff /include/uapi/linux/input.h
parent4f38b9f2f4a56164cad7a42e92f945c3515c5a2e (diff)
downloadlinux-52a9266788324edbbfd45f02cf23440c01ee0432.tar.xz
Input: fix EVIOCSFF macro inconsistency by using _IOW()
Just like the EVIOCSABS(abs) macro, use the more compact _IOW(..., type) instead of _IOC(_IOC_WRITE, ..., sizeof(type)) for the EVIOCSFF macro. Signed-off-by: Elias Vanderstuyft <elias.vds@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/uapi/linux/input.h')
-rw-r--r--include/uapi/linux/input.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h
index f24043a12777..a8e74b45dbe2 100644
--- a/include/uapi/linux/input.h
+++ b/include/uapi/linux/input.h
@@ -148,7 +148,7 @@ struct input_keymap_entry {
#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, sizeof(struct ff_effect)) /* send a force effect to a force feedback device */
+#define EVIOCSFF _IOW('E', 0x80, 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 */