]> Devoid-pointer.net GitWeb - KLGD_FF_plugin.git/commitdiff
Adapt to updated user data format in klgd_command struct
authorMichal Malý <madcatxster@devoid-pointer.net>
Wed, 12 Aug 2015 08:55:05 +0000 (10:55 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Wed, 12 Aug 2015 08:55:05 +0000 (10:55 +0200)
klgdff.c

index ee4ac6581680383e6da5477a094aa80784e682c8..7ce178a097ef367e808b29fa9cca7d23ae6c0341 100644 (file)
--- a/klgdff.c
+++ b/klgdff.c
@@ -84,7 +84,7 @@ static int klgdff_set_autocenter(struct klgd_command_stream *s, const u16 _autoc
        autocenter = _autocenter;
 
        memcpy(c->bytes, text, len);
-       c->user.data[0] = 0xDEADBEEF;
+       c->user.ldata[0] = 0xDEADBEEF;
        kfree(text);
        return klgd_append_cmd(s, c);
 }
@@ -239,8 +239,8 @@ int klgdff_callback(void *data, const struct klgd_command_stream *s)
        printk(KERN_NOTICE "KLGDTM - EFF...\n");
        for (idx = 0; idx < s->count; idx++) {
                printk(KERN_NOTICE "KLGDFF-TD: EFF %s\n", s->commands[idx]->bytes);
-               if (s->commands[idx]->user.data[0])
-                       printk(KERN_NOTICE "KLGDFF-TD: User1 0x%X\n", s->commands[idx]->user.data[0]);
+               if (s->commands[idx]->user.ldata[0])
+                       printk(KERN_NOTICE "KLGDFF-TD: User1 0x%X\n", s->commands[idx]->user.ldata[0]);
        }
 
        /* Simulate default USB polling rate of 125 Hz */