Lines Matching refs:client
30 static int write_regs(struct i2c_client *client,
34 if (i2c_smbus_write_byte_data(client, rv->reg, rv->val) < 0)
45 static int ov7640_probe(struct i2c_client *client)
47 struct i2c_adapter *adapter = client->adapter;
53 sd = devm_kzalloc(&client->dev, sizeof(*sd), GFP_KERNEL);
56 v4l2_i2c_subdev_init(sd, client, &ov7640_ops);
58 client->flags = I2C_CLIENT_SCCB;
60 v4l_info(client, "chip found @ 0x%02x (%s)\n",
61 client->addr << 1, client->adapter->name);
63 if (write_regs(client, regval_init, ARRAY_SIZE(regval_init)) < 0) {
64 v4l_err(client, "error initializing OV7640\n");
72 static void ov7640_remove(struct i2c_client *client)
74 struct v4l2_subdev *sd = i2c_get_clientdata(client);