diff options
Diffstat (limited to 'util/romcc/tests/simple_test6.c')
-rw-r--r-- | util/romcc/tests/simple_test6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/romcc/tests/simple_test6.c b/util/romcc/tests/simple_test6.c index 147614e84b..8aee0cdf41 100644 --- a/util/romcc/tests/simple_test6.c +++ b/util/romcc/tests/simple_test6.c @@ -137,7 +137,7 @@ int smbus_read_byte(unsigned device, unsigned address) /* setup transaction */ /* disable interrupts */ outb(inb(SMBUS_IO_BASE + SMBHSTCTL) & (~1), SMBUS_IO_BASE + SMBHSTCTL); - /* set the device I'm talking too */ + /* set the device I'm talking to */ outb(((device & 0x7f) << 1) | 1, SMBUS_IO_BASE + SMBHSTADD); /* set the command/address... */ outb(address & 0xFF, SMBUS_IO_BASE + SMBHSTCMD); @@ -207,7 +207,7 @@ short smbus_read_byte(unsigned char device, unsigned char address) /* setup transaction */ /* disable interrupts */ outb(inb(SMBUS_IO_HSTCTL) & (~1), SMBUS_IO_HSTCTL); /* 3 */ - /* set the device I'm talking too */ + /* set the device I'm talking to */ outb(((device & 0x7f) << 1) | 1, SMBUS_IO_HSTADD); /* 1 + 3 */ /* set the command/address... */ outb(address & 0xFF, SMBUS_IO_HSTCMD); /* 1 + 3 */ |