Lines Matching defs:client
44 /* Each client has this additional data */
54 static void max6875_update_slice(struct i2c_client *client, int slice)
56 struct max6875_data *data = i2c_get_clientdata(client);
70 dev_dbg(&client->dev, "Starting update of slice %u\n", slice);
77 if (i2c_smbus_write_byte_data(client, addr >> 8, addr & 0xFF)) {
78 dev_err(&client->dev, "address set failed\n");
82 if (i2c_check_functionality(client->adapter,
84 if (i2c_smbus_read_i2c_block_data(client,
92 j = i2c_smbus_read_byte(client);
110 struct i2c_client *client = kobj_to_i2c_client(kobj);
111 struct max6875_data *data = i2c_get_clientdata(client);
117 max6875_update_slice(client, slice);
133 static int max6875_probe(struct i2c_client *client)
135 struct i2c_adapter *adapter = client->adapter;
144 if (client->addr & 1)
151 /* A fake client is created on the odd address */
152 data->fake_client = i2c_new_dummy_device(client->adapter, client->addr + 1);
159 i2c_set_clientdata(client, data);
162 err = sysfs_create_bin_file(&client->dev.kobj, &user_eeprom_attr);
175 static void max6875_remove(struct i2c_client *client)
177 struct max6875_data *data = i2c_get_clientdata(client);
181 sysfs_remove_bin_file(&client->dev.kobj, &user_eeprom_attr);