struct input_dev *dev = &(grip->dev[slot]); int i, buttons = grip->buttons[slot];
struct grip_port *port = grip->port[slot]; int i;
static void report_slot(struct grip_mp *grip, int slot){	struct input_dev *dev = &(grip->dev[slot]);	int i, buttons = grip->buttons[slot];	/* Store button states with linux input driver */	for (i = 0; i < 8; i++)		input_report_key(dev, grip_btn_gp[i], (buttons >> i) & 1);	/* Store axis states with linux driver */	input_report_abs(dev, ABS_X, grip->xaxes[slot]);	input_report_abs(dev, ABS_Y, grip->yaxes[slot]);	/* Tell the receiver of the events to process them */	input_sync(dev);	grip->dirty[slot] = 0;}