Lines Matching refs: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)
50 struct i2c_adapter *adapter = client->adapter;
56 dev_dbg(&client->dev, "initializing UDA1342 at address %d on %s\n",
57 client->addr, adapter->name);
59 sd = devm_kzalloc(&client->dev, sizeof(*sd), GFP_KERNEL);
63 v4l2_i2c_subdev_init(sd, client, &uda1342_ops);
65 write_reg(client, 0x00, 0x8000); /* reset registers */
66 write_reg(client, 0x00, 0x1241); /* select input 1 */
68 v4l_info(client, "chip found @ 0x%02x (%s)\n",
69 client->addr << 1, client->adapter->name);
74 static void uda1342_remove(struct i2c_client *client)
76 struct v4l2_subdev *sd = i2c_get_clientdata(client);