Lines Matching refs:rv
85 int i, rv; in adc128_update_device() local
91 rv = i2c_smbus_read_word_swapped(client, in adc128_update_device()
93 if (rv < 0) in adc128_update_device()
95 data->in[0][i] = rv >> 4; in adc128_update_device()
97 rv = i2c_smbus_read_byte_data(client, in adc128_update_device()
99 if (rv < 0) in adc128_update_device()
101 data->in[1][i] = rv << 4; in adc128_update_device()
103 rv = i2c_smbus_read_byte_data(client, in adc128_update_device()
105 if (rv < 0) in adc128_update_device()
107 data->in[2][i] = rv << 4; in adc128_update_device()
110 rv = i2c_smbus_read_word_swapped(client, ADC128_REG_TEMP); in adc128_update_device()
111 if (rv < 0) in adc128_update_device()
113 data->temp[0] = rv >> 7; in adc128_update_device()
115 rv = i2c_smbus_read_byte_data(client, ADC128_REG_TEMP_MAX); in adc128_update_device()
116 if (rv < 0) in adc128_update_device()
118 data->temp[1] = rv << 1; in adc128_update_device()
120 rv = i2c_smbus_read_byte_data(client, ADC128_REG_TEMP_HYST); in adc128_update_device()
121 if (rv < 0) in adc128_update_device()
123 data->temp[2] = rv << 1; in adc128_update_device()
125 rv = i2c_smbus_read_byte_data(client, ADC128_REG_ALARM); in adc128_update_device()
126 if (rv < 0) in adc128_update_device()
128 data->alarms |= rv; in adc128_update_device()
136 ret = ERR_PTR(rv); in adc128_update_device()