staging: nvec: ps2: let the start/stop streaming commands be called by the start...
authorMarc Dietrich <marvin24@gmx.de>
Mon, 26 Dec 2011 16:57:33 +0000 (17:57 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 31 Jan 2012 18:27:57 +0000 (10:27 -0800)
Instead of executing these commands during open/close, the start/stop
event of the serio device seem to be more appropiete.

Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Julian Andres Klode <jak@jak-linux.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/nvec/nvec_ps2.c

index 4410dfb3e33b47804d49852d537df94e3d6e3ae9..f15283468c59fe9f3c0a7bec4236ec642c73896c 100644 (file)
@@ -92,8 +92,8 @@ static int __devinit nvec_mouse_probe(struct platform_device *pdev)
 
        ser_dev->id.type = SERIO_8042;
        ser_dev->write = ps2_sendcommand;
-       ser_dev->open = ps2_startstreaming;
-       ser_dev->close = ps2_stopstreaming;
+       ser_dev->start = ps2_startstreaming;
+       ser_dev->stop = ps2_stopstreaming;
 
        strlcpy(ser_dev->name, "nvec mouse", sizeof(ser_dev->name));
        strlcpy(ser_dev->phys, "nvec", sizeof(ser_dev->phys));