aboutsummaryrefslogtreecommitdiffstats
path: root/include/programmer.h
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-08-19 00:19:26 +0200
committerAnastasia Klimchuk <aklm@chromium.org>2022-09-08 02:00:31 +0000
commit5fe7f4f6d18990b9d5fd336fef16b3a09cfbc8b1 (patch)
treeb1ebee1921d19a541114eedf00363fd01fba3df1 /include/programmer.h
parent27be9edd46d2d30ad16ebe0e689249365a8e9628 (diff)
downloadflashrom-5fe7f4f6d18990b9d5fd336fef16b3a09cfbc8b1.tar.gz
flashrom-5fe7f4f6d18990b9d5fd336fef16b3a09cfbc8b1.tar.bz2
flashrom-5fe7f4f6d18990b9d5fd336fef16b3a09cfbc8b1.zip
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 <felixsinger@posteo.net> Change-Id: I159d789112d7a778744b59b45133df3928b8445e Reviewed-on: https://review.coreboot.org/c/flashrom/+/66870 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'include/programmer.h')
-rw-r--r--include/programmer.h5
1 files changed, 3 insertions, 2 deletions
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 <stdbool.h>
#include <stdint.h>
#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;