---
Hi,

Changes from previous patches: 
- All changes removed from higher-level files
- Extra debug line removed

Signed-off-by: Jim Keir <[email protected]> 

 drivers/hid/usbhid/hid-pidff.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/hid/usbhid/hid-pidff.c b/drivers/hid/usbhid/hid-pidff.c
index 0b531c6..1b3fa70 100644
--- a/drivers/hid/usbhid/hid-pidff.c
+++ b/drivers/hid/usbhid/hid-pidff.c
@@ -568,6 +568,12 @@ static int pidff_upload_effect(struct input_dev *dev, 
struct ff_effect *effect,
        int type_id;
        int error;
 
+       pidff->block_load[PID_EFFECT_BLOCK_INDEX].value[0] = 0;
+       if (old && effect) {
+               pidff->block_load[PID_EFFECT_BLOCK_INDEX].value[0] =
+                       pidff->pid_id[effect->id];
+       }
+
        switch (effect->type) {
        case FF_CONSTANT:
                if (!old) {
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to