From adf8c95c69d19c81a302c6bc545494fa4552e712 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Wed, 12 Aug 2015 00:47:40 +0200 Subject: [PATCH] Adapt for changed KLGD API --- klgdff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/klgdff.c b/klgdff.c index 703993d..f6eeae3 100644 --- a/klgdff.c +++ b/klgdff.c @@ -83,7 +83,7 @@ static int klgdff_set_autocenter(struct klgd_command_stream *s, const u16 _autoc 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); } @@ -238,8 +238,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) - 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 */ -- 2.43.5