Just like the EVIOCSABS(abs) macro, use the more compact _IOW(..., type) instead of _IOC(_IOC_WRITE, ..., sizeof(type)) for the EVIOCSFF macro.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -148,7 +148,7 @@ struct input_keymap_entry { · 147 unmodified lines | ||
| 148 | 148 | #define EVIOCGABS(abs) _IOR('E', 0x40 + (abs), struct input_absinfo) /* get abs value/limits */ |
| 149 | 149 | #define EVIOCSABS(abs) _IOW('E', 0xc0 + (abs), struct input_absinfo) /* set abs value/limits */ |
| 150 | 150 | |
| 151 | −#define EVIOCSFF _IOC(_IOC_WRITE, 'E', 0x80, sizeof(struct ff_effect)) /* send a force effect to a force feedback device */ | |
| 151 | +#define EVIOCSFF _IOW('E', 0x80, struct ff_effect) /* send a force effect to a force feedback device */ | |
| 152 | 152 | #define EVIOCRMFF _IOW('E', 0x81, int) /* Erase a force effect */ |
| 153 | 153 | #define EVIOCGEFFECTS _IOR('E', 0x84, int) /* Report number of effects playable at the same time */ |
| 154 | 154 | |