/* Set the synaptics touchpad mode byte by special commands  */
static int synaptics_mode_cmd(struct psmouse *psmouse, unsigned char mode)
/* Set the synaptics touchpad mode byte by special commands  */
static int synaptics_mode_cmd(struct psmouse *psmouse, unsigned char mode)
{
	unsigned char param[1];
	if (psmouse_sliced_command(psmouse, mode))
		return -1;
	param[0] = SYN_PS_SET_MODE2;
	if (ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_SETRATE))
		return -1;
	return 0;
}