memcpy(xtkbd->keycode, xtkbd_keycode, sizeof(xtkbd->keycode)); for (i = 0; i < 255; i++) set_bit(xtkbd->keycode[i], xtkbd->dev.keybit); clear_bit(0, xtkbd->dev.keybit); 
input_register_device(xtkbd->dev); return 0; 
static int xtkbd_connect(struct serio *serio, struct serio_driver *drv){	struct xtkbd *xtkbd;	int i;	int err;	if (!(xtkbd = kmalloc(sizeof(struct xtkbd), GFP_KERNEL)))		return -ENOMEM;	memset(xtkbd, 0, sizeof(struct xtkbd));	xtkbd->dev.evbit[0] = BIT(EV_KEY) | BIT(EV_REP);	xtkbd->serio = serio;	init_input_dev(&xtkbd->dev);	xtkbd->dev.keycode = xtkbd->keycode;	xtkbd->dev.keycodesize = sizeof(unsigned char);	xtkbd->dev.keycodemax = ARRAY_SIZE(xtkbd_keycode);	xtkbd->dev.private = xtkbd;	serio_set_drvdata(serio, xtkbd);	err = serio_open(serio, drv);	if (err) {		serio_set_drvdata(serio, NULL);		kfree(xtkbd);		return err;	}	memcpy(xtkbd->keycode, xtkbd_keycode, sizeof(xtkbd->keycode));	for (i = 0; i < 255; i++)		set_bit(xtkbd->keycode[i], xtkbd->dev.keybit);	clear_bit(0, xtkbd->dev.keybit);	sprintf(xtkbd->phys, "%s/input0", serio->phys);	xtkbd->dev.name = xtkbd_name;	xtkbd->dev.phys = xtkbd->phys;	xtkbd->dev.id.bustype = BUS_XTKBD;	xtkbd->dev.id.vendor = 0x0001;	xtkbd->dev.id.product = 0x0001;	xtkbd->dev.id.version = 0x0100;	xtkbd->dev.dev = &serio->dev;	input_register_device(&xtkbd->dev);	printk(KERN_INFO "input: %s on %s\n", xtkbd_name, serio->phys);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/3c42f0c3dde8feb59fc87df45cadb847d5511c0a/xtkbd.c/clean/drivers/input/keyboard/xtkbd.c