Lines Matching refs:client
38 static int write_regs(struct i2c_client *client, const u8 *regs) in write_regs() argument
43 if (i2c_smbus_write_byte_data(client, regs[i], regs[i + 1]) < 0) in write_regs()
52 static int ov7640_probe(struct i2c_client *client, in ov7640_probe() argument
55 struct i2c_adapter *adapter = client->adapter; in ov7640_probe()
61 sd = devm_kzalloc(&client->dev, sizeof(*sd), GFP_KERNEL); in ov7640_probe()
64 v4l2_i2c_subdev_init(sd, client, &ov7640_ops); in ov7640_probe()
66 client->flags = I2C_CLIENT_SCCB; in ov7640_probe()
68 v4l_info(client, "chip found @ 0x%02x (%s)\n", in ov7640_probe()
69 client->addr << 1, client->adapter->name); in ov7640_probe()
71 if (write_regs(client, initial_registers) < 0) { in ov7640_probe()
72 v4l_err(client, "error initializing OV7640\n"); in ov7640_probe()
80 static int ov7640_remove(struct i2c_client *client) in ov7640_remove() argument
82 struct v4l2_subdev *sd = i2c_get_clientdata(client); in ov7640_remove()