aboutsummaryrefslogtreecommitdiff
path: root/util/romcc/tests/simple_test5.c
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2017-09-23 21:39:02 +0200
committerMartin Roth <martinroth@google.com>2017-09-27 16:38:18 +0000
commit7090377a873aaef9715b9ac8e669e9ca1a3b3651 (patch)
treec73c8104df07ff056f278daab5db128f3d55dfc3 /util/romcc/tests/simple_test5.c
parent7a2d4e56c7da1f2d8ddb70cc0a0eeba4564c75e9 (diff)
smbus: Fix a typo ("Set the device I'm talking too")
Change-Id: Ia14bbdfe973cec4b366879cd2ed5602b43754260 Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-on: https://review.coreboot.org/21653 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'util/romcc/tests/simple_test5.c')
-rw-r--r--util/romcc/tests/simple_test5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/romcc/tests/simple_test5.c b/util/romcc/tests/simple_test5.c
index 976fa3d498..e744f8f81e 100644
--- a/util/romcc/tests/simple_test5.c
+++ b/util/romcc/tests/simple_test5.c
@@ -141,7 +141,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);
@@ -211,7 +211,7 @@ int smbus_read_byte(unsigned device, unsigned 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);