aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/input.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux/input.h')
-rw-r--r--include/uapi/linux/input.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h
index a8e74b45dbe2..4f9f2a0f5573 100644
--- a/include/uapi/linux/input.h
+++ b/include/uapi/linux/input.h
@@ -414,6 +414,14 @@ struct ff_effect {
414#define FF_GAIN 0x60 414#define FF_GAIN 0x60
415#define FF_AUTOCENTER 0x61 415#define FF_AUTOCENTER 0x61
416 416
417/*
418 * ff->playback(effect_id = FF_GAIN) is the first effect_id to
419 * cause a collision with another ff method, in this case ff->set_gain().
420 * Therefore the greatest safe value for effect_id is FF_GAIN - 1,
421 * and thus the total number of effects should never exceed FF_GAIN.
422 */
423#define FF_MAX_EFFECTS FF_GAIN
424
417#define FF_MAX 0x7f 425#define FF_MAX 0x7f
418#define FF_CNT (FF_MAX+1) 426#define FF_CNT (FF_MAX+1)
419 427