Message ID | 1272560268.3987.12.camel@lovely (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c index 026df60..aa25fbd 100644 --- a/drivers/input/mouse/synaptics.c +++ b/drivers/input/mouse/synaptics.c @@ -103,8 +103,12 @@ void synaptics_reset(struct psmouse *psmouse) */ static int synaptics_send_cmd(struct psmouse *psmouse, unsigned char c, unsigned char *param) { - if (psmouse_sliced_command(psmouse, c)) - return -1; + int i; + + for (i = 0; i < 4; i++) { + if (ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_SETRES)) + return -1; + } if (ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_GETINFO)) return -1; return 0;