struct input_dev *dev = &magellan->dev; 
struct input_dev *dev = magellan->dev; 
static void magellan_process_packet(struct magellan* magellan, struct pt_regs *regs){	struct input_dev *dev = &magellan->dev;	unsigned char *data = magellan->data;	int i, t;	if (!magellan->idx) return;	input_regs(dev, regs);	switch (magellan->data[0]) {		case 'd':				/* Axis data */			if (magellan->idx != 25) return;			if (magellan_crunch_nibbles(data, 24)) return;			for (i = 0; i < 6; i++)				input_report_abs(dev, magellan_axes[i],					(data[(i << 2) + 1] << 12 | data[(i << 2) + 2] << 8 |					 data[(i << 2) + 3] <<  4 | data[(i << 2) + 4]) - 32768);			break;		case 'k':				/* Button data */			if (magellan->idx != 4) return;			if (magellan_crunch_nibbles(data, 3)) return;			t = (data[1] << 1) | (data[2] << 5) | data[3];			for (i = 0; i < 9; i++) input_report_key(dev, magellan_buttons[i], (t >> i) & 1);			break;	}	input_sync(dev);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/17dd3f0f7aa729a042af5d3318ff9b3e7781b45b/magellan.c/clean/drivers/input/joystick/magellan.c