err = indycam_write_block(client, 0, sizeof(initseq), (unsigned char *)&initseq); 
err = indycam_write_block(client, 0, sizeof(initseq), (u8 *)&initseq); 
static int indycam_attach(struct i2c_adapter *adap, int addr, int kind){	int err = 0;	struct indycam *camera;	struct i2c_client *client;	printk(KERN_INFO "SGI IndyCam driver version %s\n",	       INDYCAM_MODULE_VERSION);	client = kmalloc(sizeof(struct i2c_client), GFP_KERNEL);	if (!client)		return -ENOMEM;	camera = kmalloc(sizeof(struct indycam), GFP_KERNEL);	if (!camera) {		err = -ENOMEM;		goto out_free_client;	}	memset(client, 0, sizeof(struct i2c_client));	memset(camera, 0, sizeof(struct indycam));	client->addr = addr;	client->adapter = adap;	client->driver = &i2c_driver_indycam;	client->flags = 0;	strcpy(client->name, "IndyCam client");	i2c_set_clientdata(client, camera);	camera->client = client;	err = i2c_attach_client(client);	if (err)		goto out_free_camera;	camera->version = i2c_smbus_read_byte_data(client, INDYCAM_VERSION);	if (camera->version != CAMERA_VERSION_INDY &&	    camera->version != CAMERA_VERSION_MOOSE) {		err = -ENODEV;		goto out_detach_client;	}	printk(KERN_INFO "IndyCam v%d.%d detected\n",	       INDYCAM_VERSION_MAJOR(camera->version),	       INDYCAM_VERSION_MINOR(camera->version));	indycam_regdump(client);	// initialize	err = indycam_write_block(client, 0, sizeof(initseq),				  (unsigned char *)&initseq);	if (err) {		printk(KERN_ERR "IndyCam initalization failed\n");		err = -EIO;		goto out_detach_client;	}	indycam_regdump(client);	// white balance	err = indycam_write_reg(client, INDYCAM_CONTROL,			  INDYCAM_CONTROL_AGCENA | INDYCAM_CONTROL_AWBCTL);	if (err) {		printk(KERN_ERR "IndyCam white balance "		       "initialization failed\n");		err = -EIO;		goto out_detach_client;	}	indycam_regdump(client);	printk(KERN_INFO "IndyCam initialized\n");	return 0;out_detach_client:	i2c_detach_client(client);out_free_camera:	kfree(camera);out_free_client:	kfree(client);	return err;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/a637a114f36b94a1ad8b9867f43bac0414958420/indycam.c/clean/drivers/media/video/indycam.c