Anastasia Klimchuk has submitted this change. ( https://review.coreboot.org/c/flashrom/+/66895 )
Change subject: ft2232_spi.c: Retype variable `clock_5x` with bool
......................................................................
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(a)posteo.net>
Change-Id: Ie3005f9dcb2dcfe63261c52a36d865d175a0a75c
Reviewed-on: https://review.coreboot.org/c/flashrom/+/66895
Reviewed-by: Anastasia Klimchuk <aklm(a)chromium.org>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Angel Pons <th3fanbus(a)gmail.com>
---
M ft2232_spi.c
1 file changed, 20 insertions(+), 2 deletions(-)
Approvals:
build bot (Jenkins): Verified
Angel Pons: Looks good to me, approved
Anastasia Klimchuk: Looks good to me, approved
diff --git a/ft2232_spi.c b/ft2232_spi.c
index 2971c2e..5b45d7e 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -14,6 +14,7 @@
* GNU General Public License for more details.
*/
+#include <stdbool.h>
#include <stdio.h>
#include <strings.h>
#include <string.h>
@@ -317,7 +318,7 @@
* but the non-H chips can only run at 12 MHz. We disable the divide-by-5
* prescaler on 'H' chips so they run at 60MHz.
*/
- 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:
@@ -618,7 +619,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) {
--
To view, visit https://review.coreboot.org/c/flashrom/+/66895
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ie3005f9dcb2dcfe63261c52a36d865d175a0a75c
Gerrit-Change-Number: 66895
Gerrit-PatchSet: 15
Gerrit-Owner: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: merged
Attention is currently required from: Felix Singer.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/66891 )
Change subject: tree: Retype variable `laptop_ok` with bool
......................................................................
Patch Set 13: Code-Review+2
(1 comment)
File board_enable.c:
https://review.coreboot.org/c/flashrom/+/66891/comment/38100f9d_dd874fc3
PS13, Line 2295: is_laptop = 1;
> For another patch: please consider turning `is_laptop` into an enum.
I suggested to create a ticket for this, not to forget https://ticket.coreboot.org/issues/416
It starts being useful to have a list of Easy projects things to do, and in any case whoever will do this, ticket helps not to forget.
--
To view, visit https://review.coreboot.org/c/flashrom/+/66891
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I5d9fc3516bc2d29f11b056e35b3e5e324ce93423
Gerrit-Change-Number: 66891
Gerrit-PatchSet: 13
Gerrit-Owner: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Comment-Date: Thu, 08 Sep 2022 02:12:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment