Lines Matching defs:client
58 struct i2c_client *client = to_i2c_client(dev);
66 rc = i2c_smbus_read_i2c_block_data(client, sattr->index, sattr->nr,
78 rc = i2c_smbus_read_i2c_block_data(client, sattr->index,
101 struct i2c_client *client = to_i2c_client(dev);
122 rc = i2c_smbus_write_i2c_block_data(client, sattr->index, sattr->nr,
159 struct i2c_client *client = kobj_to_i2c_client(kobj);
162 dev_dbg(&client->dev, "ds1682_eeprom_read(p=%p, off=%lli, c=%zi)\n",
165 rc = i2c_smbus_read_i2c_block_data(client, DS1682_REG_EEPROM + off,
177 struct i2c_client *client = kobj_to_i2c_client(kobj);
179 dev_dbg(&client->dev, "ds1682_eeprom_write(p=%p, off=%lli, c=%zi)\n",
183 if (i2c_smbus_write_i2c_block_data(client, DS1682_REG_EEPROM + off,
203 static int ds1682_probe(struct i2c_client *client)
207 if (!i2c_check_functionality(client->adapter,
209 dev_err(&client->dev, "i2c bus does not support the ds1682\n");
214 rc = sysfs_create_group(&client->dev.kobj, &ds1682_group);
218 rc = sysfs_create_bin_file(&client->dev.kobj, &ds1682_eeprom_attr);
225 sysfs_remove_group(&client->dev.kobj, &ds1682_group);
230 static void ds1682_remove(struct i2c_client *client)
232 sysfs_remove_bin_file(&client->dev.kobj, &ds1682_eeprom_attr);
233 sysfs_remove_group(&client->dev.kobj, &ds1682_group);