瀏覽代碼

Input: sentelic - fix left/right horizontal scroll mapping

Signed-off-by: Tai-hwa Liang <avatar@sentelic.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Tai-hwa Liang 15 年之前
父節點
當前提交
c332e9fcc5
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      drivers/input/mouse/sentelic.c

+ 3 - 3
drivers/input/mouse/sentelic.c

@@ -2,7 +2,7 @@
  * Finger Sensing Pad PS/2 mouse driver.
  * Finger Sensing Pad PS/2 mouse driver.
  *
  *
  * Copyright (C) 2005-2007 Asia Vital Components Co., Ltd.
  * Copyright (C) 2005-2007 Asia Vital Components Co., Ltd.
- * Copyright (C) 2005-2009 Tai-hwa Liang, Sentelic Corporation.
+ * Copyright (C) 2005-2010 Tai-hwa Liang, Sentelic Corporation.
  *
  *
  *   This program is free software; you can redistribute it and/or
  *   This program is free software; you can redistribute it and/or
  *   modify it under the terms of the GNU General Public License
  *   modify it under the terms of the GNU General Public License
@@ -658,9 +658,9 @@ static psmouse_ret_t fsp_process_byte(struct psmouse *psmouse)
 			if (packet[3] & BIT(1))
 			if (packet[3] & BIT(1))
 				button_status |= 0x0f;	/* wheel up */
 				button_status |= 0x0f;	/* wheel up */
 			if (packet[3] & BIT(2))
 			if (packet[3] & BIT(2))
-				button_status |= BIT(5);/* horizontal left */
+				button_status |= BIT(4);/* horizontal left */
 			if (packet[3] & BIT(3))
 			if (packet[3] & BIT(3))
-				button_status |= BIT(4);/* horizontal right */
+				button_status |= BIT(5);/* horizontal right */
 			/* push back to packet queue */
 			/* push back to packet queue */
 			if (button_status != 0)
 			if (button_status != 0)
 				packet[3] = button_status;
 				packet[3] = button_status;