/* ADT7461 in "extended mode" operation uses unsigned integers offset by 64 (e.g., 0 -> -64 degC). The range is restricted to -64..191 degC.  */
static int temp_from_u8_adt7461(struct lm90_data *data, u8 val)
/* ADT7461 in "extended mode" operation uses unsigned integers offset by 64 (e.g., 0 -> -64 degC). The range is restricted to -64..191 degC.  */
static int temp_from_u8_adt7461(struct lm90_data *data, u8 val)
{
	if (data->flags & LM90_FLAG_ADT7461_EXT)
		return (val - 64) * 1000;
	else
		return temp_from_s8(val);
}