Beispiel #1
0
static int ov3640_probe(struct i2c_client *client, const struct i2c_device_id *id)
{
	printk("=====>enter ov3640 probe\n");
	ov3640_sensor_desc.client = client;
	sensor_set_i2c_speed(client,400000);// set ov3640 i2c speed : 400khz
	//sensor_set_i2c_speed(client,5000);// F4760: set ov3640 i2c speed : 5khz
	camera_sensor_register(&ov3640_sensor_desc);

	return 0;
}
Beispiel #2
0
static int cm3511_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id)
{
	dprintk("cm3511_i2c_probe!\n");
	cm3511.client = client;
	return camera_sensor_register(&cm3511.desc);
}