/* This chip can report temperature data either as a two's complement number in the range -128 to 127, or as an unsigned number that must be offset by 64.  */
static int decode_temp(u8 twos_complement, u8 raw)
/* This chip can report temperature data either as a two's complement number in the range -128 to 127, or as an unsigned number that must be offset by 64.  */
static int decode_temp(u8 twos_complement, u8 raw)
{
	return twos_complement ? (s8)raw : raw - 64;
}