summaryrefslogtreecommitdiff
path: root/util/romcc/tests/simple_test4.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/romcc/tests/simple_test4.c')
-rw-r--r--util/romcc/tests/simple_test4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/romcc/tests/simple_test4.c b/util/romcc/tests/simple_test4.c
index 2ac6a4d5f4..bd3f52a822 100644
--- a/util/romcc/tests/simple_test4.c
+++ b/util/romcc/tests/simple_test4.c
@@ -313,7 +313,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);
@@ -383,7 +383,7 @@ short smbus_read_byte(unsigned char device, unsigned char address)
/* setup transaction */
/* disable interrupts */
outb(inb(SMBUS_IO_HSTCTL) & (~1), SMBUS_IO_HSTCTL);
- /* set the device I'm talking too */
+ /* set the device I'm talking to */
outb(((device & 0x7f) << 1) | 1, SMBUS_IO_HSTADD);
/* set the command/address... */
outb(address & 0xFF, SMBUS_IO_HSTCMD);