From 50f812cfc705743a46132f54057b42e71d0f6350 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Tue, 27 Dec 2022 11:00:13 +1100 Subject: dmi.c: Pass is_laptop by ref into dmi Prefix the remaining global cases with `g_` to avoid shadowing issues and for easy greping. Change-Id: I3d5ad6c0623269492d775a99a947fd6fe26c5f91 Signed-off-by: Edward O'Callaghan Reviewed-on: https://review.coreboot.org/c/flashrom/+/71622 Tested-by: build bot (Jenkins) Reviewed-by: Sam McNally --- include/programmer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/programmer.h') diff --git a/include/programmer.h b/include/programmer.h index 304a2166..ab482e68 100644 --- a/include/programmer.h +++ b/include/programmer.h @@ -244,7 +244,7 @@ int cb_check_image(const uint8_t *bios, unsigned int size); /* dmi.c */ #if defined(__i386__) || defined(__x86_64__) -void dmi_init(void); +void dmi_init(int *is_laptop); bool dmi_is_supported(void); int dmi_match(const char *pattern); #endif // defined(__i386__) || defined(__x86_64__) @@ -263,7 +263,7 @@ extern int superio_count; #endif #if CONFIG_INTERNAL == 1 -extern int is_laptop; +extern int g_is_laptop; extern bool g_laptop_ok; extern bool force_boardmismatch; void probe_superio(void); -- cgit v1.2.3