From 7090377a873aaef9715b9ac8e669e9ca1a3b3651 Mon Sep 17 00:00:00 2001 From: Jonathan Neuschäfer Date: Sat, 23 Sep 2017 21:39:02 +0200 Subject: smbus: Fix a typo ("Set the device I'm talking too") MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia14bbdfe973cec4b366879cd2ed5602b43754260 Signed-off-by: Jonathan Neuschäfer Reviewed-on: https://review.coreboot.org/21653 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Ronald G. Minnich --- util/romcc/tests/raminit_test2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/romcc/tests/raminit_test2.c') diff --git a/util/romcc/tests/raminit_test2.c b/util/romcc/tests/raminit_test2.c index d20ae6d431..c5b366ff5a 100644 --- a/util/romcc/tests/raminit_test2.c +++ b/util/romcc/tests/raminit_test2.c @@ -314,7 +314,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); -- cgit v1.2.3