psmouse->dev.name = psmouse->devname; psmouse->dev.phys = psmouse->phys; psmouse->dev.id.bustype = BUS_I8042; psmouse->dev.id.vendor = 0x0002; psmouse->dev.id.product = psmouse->type; psmouse->dev.id.version = psmouse->model; 
input_dev->name = psmouse->devname; input_dev->phys = psmouse->phys; input_dev->id.bustype = BUS_I8042; input_dev->id.vendor = 0x0002; input_dev->id.product = psmouse->type; input_dev->id.version = psmouse->model; 
static int psmouse_switch_protocol(struct psmouse *psmouse, struct psmouse_protocol *proto){	memset(&psmouse->dev, 0, sizeof(struct input_dev));	init_input_dev(&psmouse->dev);	psmouse->dev.private = psmouse;	psmouse->dev.dev = &psmouse->ps2dev.serio->dev;	psmouse->dev.evbit[0] = BIT(EV_KEY) | BIT(EV_REL);	psmouse->dev.keybit[LONG(BTN_MOUSE)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT);	psmouse->dev.relbit[0] = BIT(REL_X) | BIT(REL_Y);	psmouse->set_rate = psmouse_set_rate;	psmouse->set_resolution = psmouse_set_resolution;	psmouse->protocol_handler = psmouse_process_byte;	psmouse->pktsize = 3;	if (proto && (proto->detect || proto->init)) {		if (proto->detect && proto->detect(psmouse, 1) < 0)			return -1;		if (proto->init && proto->init(psmouse) < 0)			return -1;		psmouse->type = proto->type;	}	else		psmouse->type = psmouse_extensions(psmouse, psmouse_max_proto, 1);	sprintf(psmouse->devname, "%s %s %s",		psmouse_protocol_by_type(psmouse->type)->name, psmouse->vendor, psmouse->name);	psmouse->dev.name = psmouse->devname;	psmouse->dev.phys = psmouse->phys;	psmouse->dev.id.bustype = BUS_I8042;	psmouse->dev.id.vendor = 0x0002;	psmouse->dev.id.product = psmouse->type;	psmouse->dev.id.version = psmouse->model;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/2e5b636bb5f8dacbb91d08544e2c41ebcad5dace/psmouse-base.c/buggy/drivers/input/mouse/psmouse-base.c