struct input_dev *dev = &stinger->dev; 
struct input_dev *dev = stinger->dev; 
static void stinger_process_packet(struct stinger *stinger, struct pt_regs *regs){	struct input_dev *dev = &stinger->dev;	unsigned char *data = stinger->data;	if (!stinger->idx) return;	input_regs(dev, regs);	input_report_key(dev, BTN_A,	  ((data[0] & 0x20) >> 5));	input_report_key(dev, BTN_B,	  ((data[0] & 0x10) >> 4));	input_report_key(dev, BTN_C,	  ((data[0] & 0x08) >> 3));	input_report_key(dev, BTN_X,	  ((data[0] & 0x04) >> 2));	input_report_key(dev, BTN_Y,	  ((data[3] & 0x20) >> 5));	input_report_key(dev, BTN_Z,	  ((data[3] & 0x10) >> 4));	input_report_key(dev, BTN_TL,     ((data[3] & 0x08) >> 3));	input_report_key(dev, BTN_TR,     ((data[3] & 0x04) >> 2));	input_report_key(dev, BTN_SELECT, ((data[3] & 0x02) >> 1));	input_report_key(dev, BTN_START,   (data[3] & 0x01));	input_report_abs(dev, ABS_X, (data[1] & 0x3F) - ((data[0] & 0x01) << 6));	input_report_abs(dev, ABS_Y, ((data[0] & 0x02) << 5) - (data[2] & 0x3F));	input_sync(dev);	return;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/17dd3f0f7aa729a042af5d3318ff9b3e7781b45b/stinger.c/buggy/drivers/input/joystick/stinger.c