Skip to content

Commit

Permalink
staging: nvec: ps2: let the start/stop streaming commands be called b…
Browse files Browse the repository at this point in the history
…y 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 <marvin24@gmx.de>
Signed-off-by: Julian Andres Klode <jak@jak-linux.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Marc Dietrich authored and Greg Kroah-Hartman committed Jan 31, 2012
1 parent d1b5342 commit 34ba143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/nvec/nvec_ps2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 34ba143

Please sign in to comment.