diff options
author | Julian Andres Klode <jak@jak-linux.org> | 2011-09-27 19:01:03 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-29 17:41:38 -0700 |
commit | 1e46e6273bc62d87c1eb984d2a2b16efa6b19641 (patch) | |
tree | 928726bfa9a1959d7a8814225473c5a08e1e80b6 /drivers/staging/nvec | |
parent | ff006d12667153a5ee187c834ac328dfd5afb0a2 (diff) |
staging: nvec: ps2: Always sample 4 bytes instead of just 1
Get 4 bytes of data from nvec at once instead of just a single
byte. This makes the driver more similar to nvidias and might
improve reliability.
Signed-off-by: Julian Andres Klode <jak@jak-linux.org>
Acked-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/nvec')
-rw-r--r-- | drivers/staging/nvec/nvec_ps2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/nvec/nvec_ps2.c b/drivers/staging/nvec/nvec_ps2.c index c3ba12c7cf83..742f5ccfe763 100644 --- a/drivers/staging/nvec/nvec_ps2.c +++ b/drivers/staging/nvec/nvec_ps2.c @@ -21,7 +21,7 @@ #include "nvec.h" -#define START_STREAMING {'\x06', '\x03', '\x01'} +#define START_STREAMING {'\x06', '\x03', '\x04'} #define STOP_STREAMING {'\x06', '\x04'} #define SEND_COMMAND {'\x06', '\x01', '\xf4', '\x01'} @@ -65,7 +65,8 @@ static int nvec_ps2_notifier(struct notifier_block *nb, switch (event_type) { case NVEC_PS2_EVT: - serio_interrupt(ps2_dev.ser_dev, msg[2], 0); + for (i = 0; i < msg[1]; i++) + serio_interrupt(ps2_dev.ser_dev, msg[2 + i], 0); return NOTIFY_STOP; case NVEC_PS2: |