Lines Matching defs:ret
42 int ret;
46 ret = i2c_smbus_write_byte_data(data->client, SI7005_CONFIG,
49 if (ret < 0)
54 ret = i2c_smbus_read_byte_data(data->client, SI7005_STATUS);
55 if (ret < 0)
57 if (!(ret & SI7005_STATUS_NRDY))
61 ret = -EIO;
65 ret = i2c_smbus_read_word_swapped(data->client, SI7005_DATA);
70 return ret;
78 int ret;
82 ret = si7005_read_measurement(data, chan->type == IIO_TEMP);
83 if (ret < 0)
84 return ret;
85 *val = ret;
130 int ret;
151 ret = i2c_smbus_read_byte_data(client, SI7005_ID);
152 if (ret < 0)
153 return ret;
154 if (ret != SI7005_ID_7005 && ret != SI7005_ID_7015)
157 ret = i2c_smbus_read_byte_data(client, SI7005_CONFIG);
158 if (ret < 0)
159 return ret;
160 data->config = ret;