/* Reports joystick state to the linux input layer.  */
static void report_slot(struct grip_mp *grip, int slot)
/* Reports joystick state to the linux input layer.  */
static void report_slot(struct grip_mp *grip, int slot)
{
	struct grip_port *port = grip->port[slot];
	int i;
	for (i = 0; i < 8; i++)
		input_report_key(port->dev, grip_btn_gp[i], (port->buttons >> i) & 1);
	input_report_abs(port->dev, ABS_X, port->xaxes);
	input_report_abs(port->dev, ABS_Y, port->yaxes);
	input_sync(port->dev);
	port->dirty = 0;
}