ft2232_spi.c: Retype variable `clock_5x` with bool

Use the bool type instead of an integer for the variable `clock_5x`,
since this represents its purpose much better.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
Change-Id: Ie3005f9dcb2dcfe63261c52a36d865d175a0a75c
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/66895
Original-Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Original-Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/71486
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/ft2232_spi.c b/ft2232_spi.c
index 083bc55..6d1857f 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -16,6 +16,7 @@
 
 #if CONFIG_FT2232_SPI == 1
 
+#include <stdbool.h>
 #include <stdio.h>
 #include <strings.h>
 #include <string.h>
@@ -313,7 +314,7 @@
 	 * but the non-H chips can only run at 12 MHz. We enable the divide-by-5
 	 * prescaler on the former to run on the same speed.
 	 */
-	uint8_t clock_5x = 1;
+	bool clock_5x = true;
 	/* In addition to the prescaler mentioned above there is also another
 	 * configurable one on all versions of the chips. Its divisor div can be
 	 * set by a 16 bit value x according to the following formula:
@@ -623,7 +624,7 @@
 
 	if (ftdic->type != TYPE_2232H && ftdic->type != TYPE_4232H && ftdic->type != TYPE_232H) {
 		msg_pdbg("FTDI chip type %d is not high-speed.\n", ftdic->type);
-		clock_5x = 0;
+		clock_5x = false;
 	}
 
 	if (ftdi_usb_reset(ftdic) < 0) {