Lines Matching refs:rc
61 int rc;
66 rc = i2c_smbus_read_i2c_block_data(client, sattr->index, sattr->nr,
68 if (rc < 0)
78 rc = i2c_smbus_read_i2c_block_data(client, sattr->index,
81 if (rc < 0 || retries <= 0)
104 int rc;
109 rc = kstrtoull(buf, 0, &val);
110 if (rc < 0) {
122 rc = i2c_smbus_write_i2c_block_data(client, sattr->index, sattr->nr,
124 if (rc < 0) {
160 int rc;
165 rc = i2c_smbus_read_i2c_block_data(client, DS1682_REG_EEPROM + off,
167 if (rc < 0)
205 int rc;
210 rc = -ENODEV;
214 rc = sysfs_create_group(&client->dev.kobj, &ds1682_group);
215 if (rc)
218 rc = sysfs_create_bin_file(&client->dev.kobj, &ds1682_eeprom_attr);
219 if (rc)
227 return rc;