Searched refs:temp_dec (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/hwmon/ |
H A D | sbtsi_temp.c | 76 s32 temp_int, temp_dec; in sbtsi_read() local 94 temp_dec = i2c_smbus_read_byte_data(data->client, SBTSI_REG_TEMP_DEC); in sbtsi_read() 98 temp_dec = i2c_smbus_read_byte_data(data->client, SBTSI_REG_TEMP_DEC); in sbtsi_read() 105 temp_dec = i2c_smbus_read_byte_data(data->client, SBTSI_REG_TEMP_HIGH_DEC); in sbtsi_read() 111 temp_dec = i2c_smbus_read_byte_data(data->client, SBTSI_REG_TEMP_LOW_DEC); in sbtsi_read() 121 if (temp_dec < 0) in sbtsi_read() 122 return temp_dec; in sbtsi_read() 124 *val = sbtsi_reg_to_mc(temp_int, temp_dec); in sbtsi_read() 134 u8 temp_int, temp_dec; in sbtsi_write() local 150 sbtsi_mc_to_reg(val, &temp_int, &temp_dec); in sbtsi_write() [all …]
|
/openbmc/linux/drivers/iio/humidity/ |
H A D | dht11.c | 125 unsigned char temp_int, temp_dec, hum_int, hum_dec, checksum; in dht11_decode() local 142 temp_dec = dht11_decode_byte(&bits[24]); in dht11_decode() 145 if (((hum_int + hum_dec + temp_int + temp_dec) & 0xff) != checksum) { in dht11_decode() 152 dht11->temperature = (((temp_int & 0x7f) << 8) + temp_dec) * in dht11_decode() 155 } else if (temp_dec == 0 && hum_dec == 0) { /* DHT11 */ in dht11_decode() 161 hum_int, hum_dec, temp_int, temp_dec); in dht11_decode()
|