Lines Matching defs:client
14 static int write_reg(struct i2c_client *client, int reg, int value)
17 i2c_smbus_write_word_data(client, reg, swab16(value));
24 struct i2c_client *client = v4l2_get_subdevdata(sd);
28 write_reg(client, 0x00, 0x1241); /* select input 1 */
31 write_reg(client, 0x00, 0x1441); /* select input 2 */
48 static int uda1342_probe(struct i2c_client *client,
51 struct i2c_adapter *adapter = client->adapter;
57 dev_dbg(&client->dev, "initializing UDA1342 at address %d on %s\n",
58 client->addr, adapter->name);
60 sd = devm_kzalloc(&client->dev, sizeof(*sd), GFP_KERNEL);
64 v4l2_i2c_subdev_init(sd, client, &uda1342_ops);
66 write_reg(client, 0x00, 0x8000); /* reset registers */
67 write_reg(client, 0x00, 0x1241); /* select input 1 */
69 v4l_info(client, "chip found @ 0x%02x (%s)\n",
70 client->addr << 1, client->adapter->name);
75 static int uda1342_remove(struct i2c_client *client)
77 struct v4l2_subdev *sd = i2c_get_clientdata(client);