1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 22:21:16 +02:00

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>
This commit is contained in:
Edward O'Callaghan
2022-12-27 11:00:13 +11:00
committed by Edward O'Callaghan
parent c65379cba2
commit 50f812cfc7
4 changed files with 31 additions and 31 deletions

View File

@ -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;