Input: psmouse - move sliced command implementation to libps2
[sfrench/cifs-2.6.git] / drivers / input / mouse / psmouse-base.c
index f0b16eb4a32ab377c1ae56657a3abd0003a9bfc6..4f9f438e26533e6bbd032f9001104179181487e1 100644 (file)
@@ -431,32 +431,6 @@ static irqreturn_t psmouse_interrupt(struct serio *serio,
        return IRQ_HANDLED;
 }
 
-/*
- * psmouse_sliced_command() sends an extended PS/2 command to the mouse
- * using sliced syntax, understood by advanced devices, such as Logitech
- * or Synaptics touchpads. The command is encoded as:
- * 0xE6 0xE8 rr 0xE8 ss 0xE8 tt 0xE8 uu where (rr*64)+(ss*16)+(tt*4)+uu
- * is the command.
- */
-int psmouse_sliced_command(struct psmouse *psmouse, u8 command)
-{
-       int i;
-       int error;
-
-       error = ps2_command(&psmouse->ps2dev, NULL, PSMOUSE_CMD_SETSCALE11);
-       if (error)
-               return error;
-
-       for (i = 6; i >= 0; i -= 2) {
-               u8 d = (command >> i) & 3;
-               error = ps2_command(&psmouse->ps2dev, &d, PSMOUSE_CMD_SETRES);
-               if (error)
-                       return error;
-       }
-
-       return 0;
-}
-
 /*
  * psmouse_reset() resets the mouse into power-on state.
  */