smbus: Fix wordwrite bug

This commit is contained in:
Lucas Eriksson 2019-01-25 22:07:33 +01:00 committed by Jannik Vogel
parent ebb1052278
commit 929954e713
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ static void amd756_smb_transaction(AMD756SMBus *s)
s->smb_data0 = val;
s->smb_data1 = val >> 8;
} else {
smbus_write_word(bus, addr, cmd, s->smb_data0);
smbus_write_word(bus, addr, cmd, (s->smb_data1 << 8) | s->smb_data0);
}
break;
case AMD756_BLOCK_DATA: