spaceorb->dev.evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); 
input_dev->name = "SpaceTec SpaceOrb 360 / Avenger"; input_dev->phys = spaceorb->phys; input_dev->id.bustype = BUS_RS232; input_dev->id.vendor = SERIO_SPACEORB; input_dev->id.product = 0x0001; input_dev->id.version = 0x0100; input_dev->cdev.dev = &serio->dev; input_dev->private = spaceorb;  input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); 
static int spaceorb_connect(struct serio *serio, struct serio_driver *drv){	struct spaceorb *spaceorb;	int i, t;	int err;	if (!(spaceorb = kmalloc(sizeof(struct spaceorb), GFP_KERNEL)))		return -ENOMEM;	memset(spaceorb, 0, sizeof(struct spaceorb));	spaceorb->dev.evbit[0] = BIT(EV_KEY) | BIT(EV_ABS);	for (i = 0; i < 6; i++)		set_bit(spaceorb_buttons[i], spaceorb->dev.keybit);	for (i = 0; i < 6; i++) {		t = spaceorb_axes[i];		set_bit(t, spaceorb->dev.absbit);		spaceorb->dev.absmin[t] = -508;		spaceorb->dev.absmax[t] =  508;	}	spaceorb->serio = serio;	spaceorb->dev.private = spaceorb;	sprintf(spaceorb->phys, "%s/input0", serio->phys);	init_input_dev(&spaceorb->dev);	spaceorb->dev.name = spaceorb_name;	spaceorb->dev.phys = spaceorb->phys;	spaceorb->dev.id.bustype = BUS_RS232;	spaceorb->dev.id.vendor = SERIO_SPACEORB;	spaceorb->dev.id.product = 0x0001;	spaceorb->dev.id.version = 0x0100;	spaceorb->dev.dev = &serio->dev;	serio_set_drvdata(serio, spaceorb);	err = serio_open(serio, drv);	if (err) {		serio_set_drvdata(serio, NULL);		kfree(spaceorb);		return err;	}	input_register_device(&spaceorb->dev);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/17dd3f0f7aa729a042af5d3318ff9b3e7781b45b/spaceorb.c/buggy/drivers/input/joystick/spaceorb.c