char buf[ADI_MAX_NAME_LENGTH]; 
static void adi_init_input(struct adi *adi, struct adi_port *port, int half){	int i, t;	char buf[ADI_MAX_NAME_LENGTH];	if (!adi->length) return;	init_input_dev(&adi->dev);	t = adi->id < ADI_ID_MAX ? adi->id : ADI_ID_MAX;	snprintf(buf, ADI_MAX_PHYS_LENGTH, adi_names[t], adi->id);	snprintf(adi->name, ADI_MAX_NAME_LENGTH, "Logitech %s", buf);	snprintf(adi->phys, ADI_MAX_PHYS_LENGTH, "%s/input%d", port->gameport->phys, half);	adi->abs = adi_abs[t];	adi->key = adi_key[t];	adi->dev.open = adi_open;	adi->dev.close = adi_close;	adi->dev.name = adi->name;	adi->dev.phys = adi->phys;	adi->dev.id.bustype = BUS_GAMEPORT;	adi->dev.id.vendor = GAMEPORT_ID_VENDOR_LOGITECH;	adi->dev.id.product = adi->id;	adi->dev.id.version = 0x0100;	adi->dev.private = port;	adi->dev.evbit[0] = BIT(EV_KEY) | BIT(EV_ABS);	for (i = 0; i < adi->axes10 + adi->axes8 + (adi->hats + (adi->pad != -1)) * 2; i++)		set_bit(adi->abs[i], adi->dev.absbit);	for (i = 0; i < adi->buttons; i++)		set_bit(adi->key[i], adi->dev.keybit);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/17dd3f0f7aa729a042af5d3318ff9b3e7781b45b/adi.c/clean/drivers/input/joystick/adi.c