/* 16-bit registers on the ADT7462 are low-byte first. The data sheet says that the low byte must be read before the high byte.  */
static int adt7462_read_word_data(struct i2c_client *client, u8 reg)
/* 16-bit registers on the ADT7462 are low-byte first. The data sheet says that the low byte must be read before the high byte.  */
static int adt7462_read_word_data(struct i2c_client *client, u8 reg)
{
	u16 foo;
	foo = i2c_smbus_read_byte_data(client, reg);
	foo |= ((u16)i2c_smbus_read_byte_data(client, reg + 1) << 8);
	return foo;
}