/* Trademarks are the property of their respective owners. Device IO: read, write and toggle bit  */
static int trackpoint_read(struct ps2dev *ps2dev, unsigned char loc, unsigned char *results)
/* Trademarks are the property of their respective owners. Device IO: read, write and toggle bit  */
static int trackpoint_read(struct ps2dev *ps2dev, unsigned char loc, unsigned char *results)
{
	if (ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, TP_COMMAND)) ||
	    ps2_command(ps2dev, results, MAKE_PS2_CMD(0, 1, loc))) {
		return -1;
	}
	return 0;
}