From ea5ad1478ad5239187f6c2a381652287d52af3a1 Mon Sep 17 00:00:00 2001 From: minux Date: Sat, 22 Dec 2012 17:32:52 +0800 Subject: [PATCH] libs, mini-jtag: fix two typos Signed-off-by: minux --- libs/control.h | 2 +- mini-jtag/jtag.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/control.h b/libs/control.h index f541265..dd89b29 100644 --- a/libs/control.h +++ b/libs/control.h @@ -174,7 +174,7 @@ int fpga_swset_is_used(struct fpga_model* model, int y, int x, // When calling, same_len must contain the size of the // same_sw array. Upon return same_len returns how many -// switches were found and writen to same_sw. +// switches were found and written to same_sw. int fpga_switch_same_fromto(struct fpga_model* model, int y, int x, swidx_t sw, int from_to, swidx_t* same_sw, int *same_len); // fpga_switch_lookup() returns NO_SWITCH if switch not found. diff --git a/mini-jtag/jtag.c b/mini-jtag/jtag.c index 329b194..bc218b1 100644 --- a/mini-jtag/jtag.c +++ b/mini-jtag/jtag.c @@ -18,7 +18,7 @@ int tap_tms(struct ftdi_context *ftdi, int tms, uint8_t bit7) { uint8_t buf[3]; buf[0] = MPSSE_WRITE_TMS|MPSSE_LSB|MPSSE_BITMODE|MPSSE_WRITE_NEG; - buf[1] = 0; /* value = lenght - 1 */ + buf[1] = 0; /* value = length - 1 */ buf[2] = (tms ? 0x01 : 0x00) | ((bit7 & 0x01) << 7); if (ftdi_write_data(ftdi, buf, 3) != 3) return -1;