From 5fe7f4f6d18990b9d5fd336fef16b3a09cfbc8b1 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 19 Aug 2022 00:19:26 +0200 Subject: internal.c: Retype appropriate variables with bool Use the bool type instead of an integer for the variables `force_laptop`, `not_a_laptop`, `force_boardenable` and `force_boardmismatch` since this represents their purpose much better. Signed-off-by: Felix Singer Change-Id: I159d789112d7a778744b59b45133df3928b8445e Reviewed-on: https://review.coreboot.org/c/flashrom/+/66870 Tested-by: build bot (Jenkins) Reviewed-by: Anastasia Klimchuk Reviewed-by: Angel Pons --- include/programmer.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/programmer.h b/include/programmer.h index 5331a12b..776ac211 100644 --- a/include/programmer.h +++ b/include/programmer.h @@ -20,6 +20,7 @@ #ifndef __PROGRAMMER_H__ #define __PROGRAMMER_H__ 1 +#include #include #include "flash.h" /* for chipaddr and flashctx */ @@ -265,8 +266,8 @@ extern int superio_count; #if CONFIG_INTERNAL == 1 extern int is_laptop; extern int laptop_ok; -extern int force_boardenable; -extern int force_boardmismatch; +extern bool force_boardenable; +extern bool force_boardmismatch; void probe_superio(void); int register_superio(struct superio s); extern enum chipbustype internal_buses_supported; -- cgit v1.2.3