struct input_dev *dev = &guillemot->dev; 
struct input_dev *dev = guillemot->dev; 
static void guillemot_poll(struct gameport *gameport){	struct guillemot *guillemot = gameport_get_drvdata(gameport);	struct input_dev *dev = &guillemot->dev;	u8 data[GUILLEMOT_MAX_LENGTH];	int i;	guillemot->reads++;	if (guillemot_read_packet(guillemot->gameport, data) != GUILLEMOT_MAX_LENGTH * 8 ||		data[0] != 0x55 || data[16] != 0xaa) {		guillemot->bads++;	} else {		for (i = 0; i < 6 && guillemot->type->abs[i] >= 0; i++)			input_report_abs(dev, guillemot->type->abs[i], data[i + 5]);		if (guillemot->type->hat) {			input_report_abs(dev, ABS_HAT0X, guillemot_hat_to_axis[data[4] >> 4].x);			input_report_abs(dev, ABS_HAT0Y, guillemot_hat_to_axis[data[4] >> 4].y);		}		for (i = 0; i < 16 && guillemot->type->btn[i] >= 0; i++)			input_report_key(dev, guillemot->type->btn[i], (data[2 + (i >> 3)] >> (i & 7)) & 1);	}	input_sync(dev);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/17dd3f0f7aa729a042af5d3318ff9b3e7781b45b/guillemot.c/buggy/drivers/input/joystick/guillemot.c