if ((data[1] & 0xfc) == 0xc0) { 
if ((data[1] & 0xfc) == 0xc0) { 
static int wacom_intuos_inout(struct urb *urb){	struct wacom *wacom = urb->context;	unsigned char *data = wacom->data;	struct input_dev *dev = &wacom->dev;	int idx;	/* tool number */	idx = data[1] & 0x01;	/* Enter report */	if ((data[1] & 0xfc) == 0xc0)	{		/* serial number of the tool */		wacom->serial[idx] = ((data[3] & 0x0f) << 28) +			(data[4] << 20) + (data[5] << 12) +			(data[6] << 4) + (data[7] >> 4);		switch ((data[2] << 4) | (data[3] >> 4)) {			case 0x812: /* Inking pen */			case 0x801: /* Intuos3 Inking pen */			case 0x012:				wacom->tool[idx] = BTN_TOOL_PENCIL;				break;			case 0x822: /* Pen */			case 0x842:			case 0x852:			case 0x823: /* Intuos3 Grip Pen */			case 0x813: /* Intuos3 Classic Pen */			case 0x885: /* Intuos3 Marker Pen */			case 0x022:				wacom->tool[idx] = BTN_TOOL_PEN;				break;			case 0x832: /* Stroke pen */			case 0x032:				wacom->tool[idx] = BTN_TOOL_BRUSH;				break;			case 0x007: /* Mouse 4D and 2D */		        case 0x09c:			case 0x094:			case 0x017: /* Intuos3 2D Mouse */				wacom->tool[idx] = BTN_TOOL_MOUSE;				break;			case 0x096: /* Lens cursor */			case 0x097: /* Intuos3 Lens cursor */				wacom->tool[idx] = BTN_TOOL_LENS;				break;			case 0x82a: /* Eraser */			case 0x85a:		        case 0x91a:			case 0xd1a:			case 0x0fa:			case 0x82b: /* Intuos3 Grip Pen Eraser */			case 0x81b: /* Intuos3 Classic Pen Eraser */			case 0x91b: /* Intuos3 Airbrush Eraser */				wacom->tool[idx] = BTN_TOOL_RUBBER;				break;			case 0xd12:			case 0x912:			case 0x112:			case 0x913: /* Intuos3 Airbrush */				wacom->tool[idx] = BTN_TOOL_AIRBRUSH;				break;			default: /* Unknown tool */				wacom->tool[idx] = BTN_TOOL_PEN;		}		input_report_key(dev, wacom->tool[idx], 1);		input_event(dev, EV_MSC, MSC_SERIAL, wacom->serial[idx]);		input_sync(dev);		return 1;	}	/* Exit report */	if ((data[1] & 0xfe) == 0x80) {		input_report_key(dev, wacom->tool[idx], 0);		input_event(dev, EV_MSC, MSC_SERIAL, wacom->serial[idx]);		input_sync(dev);		return 1;	}	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/e5119885f00874453e837e3407014b73de2f4741/wacom.c/buggy/drivers/usb/input/wacom.c