/* Generic i2c probe concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1'  */
static int __devinit tef6862_probe(struct i2c_client *client, const struct i2c_device_id *id)
/* Generic i2c probe concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1'  */
static int __devinit tef6862_probe(struct i2c_client *client, const struct i2c_device_id *id)
{
	struct tef6862_state *state;
	struct v4l2_subdev *sd;
	if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA))
		return -EIO;
	v4l_info(client, "chip found @ 0x%02x (%s)\n",
			client->addr << 1, client->adapter->name);
	state = kmalloc(sizeof(struct tef6862_state), GFP_KERNEL);
	if (state == NULL)
		return -ENOMEM;
	state->freq = TEF6862_LO_FREQ;
	sd = &state->sd;
	v4l2_i2c_subdev_init(sd, client, &tef6862_ops);
	return 0;
}