aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hid/hid-wiimote-debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hid/hid-wiimote-debug.c b/drivers/hid/hid-wiimote-debug.c
index fdd30dd71ef8..0c0deaa23774 100644
--- a/drivers/hid/hid-wiimote-debug.c
+++ b/drivers/hid/hid-wiimote-debug.c
@@ -127,7 +127,8 @@ static int wiidebug_drm_open(struct inode *i, struct file *f)
127static ssize_t wiidebug_drm_write(struct file *f, const char __user *u, 127static ssize_t wiidebug_drm_write(struct file *f, const char __user *u,
128 size_t s, loff_t *off) 128 size_t s, loff_t *off)
129{ 129{
130 struct wiimote_debug *dbg = f->private_data; 130 struct seq_file *sf = f->private_data;
131 struct wiimote_debug *dbg = sf->private;
131 unsigned long flags; 132 unsigned long flags;
132 char buf[16]; 133 char buf[16];
133 ssize_t len; 134 ssize_t len;