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 /board_enable.c | |
parent | c65379cba274fe4c6fd1054079d19ebb628e04d3 (diff) | |
download | flashrom-git-50f812cfc705743a46132f54057b42e71d0f6350.tar.gz |
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 'board_enable.c')
-rw-r--r-- | board_enable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board_enable.c b/board_enable.c index f0df211e..0531fab2 100644 --- a/board_enable.c +++ b/board_enable.c @@ -2282,7 +2282,7 @@ static int it8718f_gpio63_raise(void) static int p2_not_a_laptop(void) { /* label this board as not a laptop */ - is_laptop = 0; + g_is_laptop = 0; msg_pdbg("Laptop detection overridden by P2 board enable.\n"); return 0; } @@ -2292,7 +2292,7 @@ static int p2_not_a_laptop(void) */ static int p2_whitelist_laptop(void) { - is_laptop = 1; + g_is_laptop = 1; g_laptop_ok = true; msg_pdbg("Whitelisted laptop detected.\n"); return 0; |