Skip to content

Commit 34ba143

Browse files
marvintwentyfourgregkh
authored andcommitted
staging: nvec: ps2: let the start/stop streaming commands be called by the start/stop functions of serio
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 <[email protected]> Signed-off-by: Julian Andres Klode <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d1b5342 commit 34ba143

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/staging/nvec/nvec_ps2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ static int __devinit nvec_mouse_probe(struct platform_device *pdev)
9292

9393
ser_dev->id.type = SERIO_8042;
9494
ser_dev->write = ps2_sendcommand;
95-
ser_dev->open = ps2_startstreaming;
96-
ser_dev->close = ps2_stopstreaming;
95+
ser_dev->start = ps2_startstreaming;
96+
ser_dev->stop = ps2_stopstreaming;
9797

9898
strlcpy(ser_dev->name, "nvec mouse", sizeof(ser_dev->name));
9999
strlcpy(ser_dev->phys, "nvec", sizeof(ser_dev->phys));

0 commit comments

Comments
 (0)