]> Devoid-pointer.net GitWeb - KLGD_FF_plugin.git/commitdiff
Fix comparison sign
authorMichal Malý <madcatxster@devoid-pointer.net>
Fri, 15 Aug 2014 21:54:08 +0000 (23:54 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Fri, 15 Aug 2014 21:54:08 +0000 (23:54 +0200)
klgd_ff_plugin.c

index 7409fa66604ece8e43cf41ccd378ebd0f9cbf578..11dd69792e8f3dfbef9fe3e93855e62ee6075b59 100644 (file)
@@ -304,7 +304,7 @@ int ffpl_init_plugin(struct klgd_plugin **plugin, struct input_dev *dev, const s
        *plugin = self;
 
        set_bit(FF_GAIN, dev->ffbit);
-       for (idx = 0; idx < (FF_EFFECT_MAX - FF_EFFECT_MIN); idx++) {
+       for (idx = 0; idx <= (FF_EFFECT_MAX - FF_EFFECT_MIN); idx++) {
                if (test_bit(idx, &priv->supported_effects)) {
                        printk(KERN_NOTICE "KLGDFF: Has bit %d, effect type %d\n", idx, FF_EFFECT_MIN + idx);
                        input_set_capability(dev, EV_FF, idx + FF_EFFECT_MIN);