Lines Matching refs:frac
150 s32 integer1, integer2, frac; in stts751_update_temp() local
170 frac = i2c_smbus_read_byte_data(priv->client, STTS751_REG_TEMP_L); in stts751_update_temp()
171 if (frac < 0) { in stts751_update_temp()
173 "I2C read failed (temp L). ret: %x\n", frac); in stts751_update_temp()
174 return frac; in stts751_update_temp()
185 frac = i2c_smbus_read_byte_data(priv->client, in stts751_update_temp()
187 if (frac < 0) { in stts751_update_temp()
190 frac); in stts751_update_temp()
191 return frac; in stts751_update_temp()
195 priv->temp = stts751_to_deg((integer1 << 8) | frac); in stts751_update_temp()
225 int integer, frac; in stts751_read_reg16() local
231 frac = i2c_smbus_read_byte_data(priv->client, lreg); in stts751_read_reg16()
232 if (frac < 0) in stts751_read_reg16()
233 return frac; in stts751_read_reg16()
235 *temp = stts751_to_deg((integer << 8) | frac); in stts751_read_reg16()