aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/sentelic.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2012-03-09 13:55:17 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-03-09 13:55:17 -0500
commitb675b3667f6729dcd1036a2a129b35445947f905 (patch)
tree0d58791e9063d3ca2c352da6f3e7df2bdb876f9d /drivers/input/mouse/sentelic.c
parent104a5f3cad8f2f27cadbdf0029400ecd9e17ccc0 (diff)
parent192cfd58774b4d17b2fe8bdc77d89c2ef4e0591d (diff)
Merge commit 'v3.3-rc6' into next
Diffstat (limited to 'drivers/input/mouse/sentelic.c')
-rw-r--r--drivers/input/mouse/sentelic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/input/mouse/sentelic.c b/drivers/input/mouse/sentelic.c
index bab2d19e17f7..2a77a52d2e62 100644
--- a/drivers/input/mouse/sentelic.c
+++ b/drivers/input/mouse/sentelic.c
@@ -2,7 +2,7 @@
2 * Finger Sensing Pad PS/2 mouse driver. 2 * Finger Sensing Pad PS/2 mouse driver.
3 * 3 *
4 * Copyright (C) 2005-2007 Asia Vital Components Co., Ltd. 4 * Copyright (C) 2005-2007 Asia Vital Components Co., Ltd.
5 * Copyright (C) 2005-2010 Tai-hwa Liang, Sentelic Corporation. 5 * Copyright (C) 2005-2011 Tai-hwa Liang, Sentelic Corporation.
6 * 6 *
7 * This program is free software; you can redistribute it and/or 7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License 8 * modify it under the terms of the GNU General Public License
@@ -160,7 +160,7 @@ static int fsp_reg_write(struct psmouse *psmouse, int reg_addr, int reg_val)
160 ps2_sendbyte(ps2dev, v, FSP_CMD_TIMEOUT2); 160 ps2_sendbyte(ps2dev, v, FSP_CMD_TIMEOUT2);
161 161
162 if (ps2_sendbyte(ps2dev, 0xf3, FSP_CMD_TIMEOUT) < 0) 162 if (ps2_sendbyte(ps2dev, 0xf3, FSP_CMD_TIMEOUT) < 0)
163 return -1; 163 goto out;
164 164
165 if ((v = fsp_test_invert_cmd(reg_val)) != reg_val) { 165 if ((v = fsp_test_invert_cmd(reg_val)) != reg_val) {
166 /* inversion is required */ 166 /* inversion is required */
@@ -257,7 +257,7 @@ static int fsp_page_reg_write(struct psmouse *psmouse, int reg_val)
257 ps2_sendbyte(ps2dev, 0x88, FSP_CMD_TIMEOUT2); 257 ps2_sendbyte(ps2dev, 0x88, FSP_CMD_TIMEOUT2);
258 258
259 if (ps2_sendbyte(ps2dev, 0xf3, FSP_CMD_TIMEOUT) < 0) 259 if (ps2_sendbyte(ps2dev, 0xf3, FSP_CMD_TIMEOUT) < 0)
260 return -1; 260 goto out;
261 261
262 if ((v = fsp_test_invert_cmd(reg_val)) != reg_val) { 262 if ((v = fsp_test_invert_cmd(reg_val)) != reg_val) {
263 ps2_sendbyte(ps2dev, 0x47, FSP_CMD_TIMEOUT2); 263 ps2_sendbyte(ps2dev, 0x47, FSP_CMD_TIMEOUT2);
@@ -305,7 +305,7 @@ static int fsp_get_buttons(struct psmouse *psmouse, int *btn)
305 }; 305 };
306 int val; 306 int val;
307 307
308 if (fsp_reg_read(psmouse, FSP_REG_TMOD_STATUS1, &val) == -1) 308 if (fsp_reg_read(psmouse, FSP_REG_TMOD_STATUS, &val) == -1)
309 return -EIO; 309 return -EIO;
310 310
311 *btn = buttons[(val & 0x30) >> 4]; 311 *btn = buttons[(val & 0x30) >> 4];