autocenter = _autocenter;
memcpy(c->bytes, text, len);
- c->user = (unsigned long)0xDEADBEEF;
+ c->user.data[0] = 0xDEADBEEF;
kfree(text);
return klgd_append_cmd(s, c);
}
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)
- printk("KLGDFF-TD: User 0x%x\n", (unsigned int)s->commands[idx]->user);
+ if (s->commands[idx]->user.data[0])
+ printk("KLGDFF-TD: User 0x%X\n", s->commands[idx]->user.data[0]);
}
/* Simulate default USB polling rate of 125 Hz */