diff mbox

[v5,1/3] input: increase struct ps2dev cmdbuf[] to 8 bytes

Message ID 1354752976-27257-2-git-send-email-kamal@canonical.com (mailing list archive)
State New, archived
Headers show

Commit Message

Kamal Mostafa Dec. 6, 2012, 12:16 a.m. UTC
Cypress PS/2 Trackpad (drivers/input/mouse/cypress_ps2.c) needs
this larger cmdbuf[] to handle 8-byte packet responses.

Signed-off-by: Kamal Mostafa <kamal@canonical.com>
---
 include/linux/libps2.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dmitry Torokhov Dec. 6, 2012, 7:51 a.m. UTC | #1
Hi Kamal,

On Wed, Dec 05, 2012 at 04:16:14PM -0800, Kamal Mostafa wrote:
> Cypress PS/2 Trackpad (drivers/input/mouse/cypress_ps2.c) needs
> this larger cmdbuf[] to handle 8-byte packet responses.
> 
> Signed-off-by: Kamal Mostafa <kamal@canonical.com>

I will apply this patch so you do not need to resend it with cypress_ps2
patches.

Thanks!

> ---
>  include/linux/libps2.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/libps2.h b/include/linux/libps2.h
> index 79603a6..4ad06e8 100644
> --- a/include/linux/libps2.h
> +++ b/include/linux/libps2.h
> @@ -36,7 +36,7 @@ struct ps2dev {
>  	wait_queue_head_t wait;
>  
>  	unsigned long flags;
> -	unsigned char cmdbuf[6];
> +	unsigned char cmdbuf[8];
>  	unsigned char cmdcnt;
>  	unsigned char nak;
>  };
> -- 
> 1.7.10.4
>
diff mbox

Patch

diff --git a/include/linux/libps2.h b/include/linux/libps2.h
index 79603a6..4ad06e8 100644
--- a/include/linux/libps2.h
+++ b/include/linux/libps2.h
@@ -36,7 +36,7 @@  struct ps2dev {
 	wait_queue_head_t wait;
 
 	unsigned long flags;
-	unsigned char cmdbuf[6];
+	unsigned char cmdbuf[8];
 	unsigned char cmdcnt;
 	unsigned char nak;
 };