diff options
author | Edward O'Callaghan <quasisec@google.com> | 2022-12-27 11:00:13 +1100 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2023-03-28 00:36:36 +0000 |
commit | 50f812cfc705743a46132f54057b42e71d0f6350 (patch) | |
tree | fe3d339625df343fcd859b85d4da895dc4235f7a /include | |
parent | c65379cba274fe4c6fd1054079d19ebb628e04d3 (diff) | |
download | flashrom-50f812cfc705743a46132f54057b42e71d0f6350.tar.gz flashrom-50f812cfc705743a46132f54057b42e71d0f6350.tar.bz2 flashrom-50f812cfc705743a46132f54057b42e71d0f6350.zip |
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 <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/71622
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sam McNally <sammc@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/programmer.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |