mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
internal: Move is_laptop into board_cfg
Change-Id: I24e38e4457299934acdcd70325d0bf0f4b139e5f Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/73455 Reviewed-by: Sam McNally <sammc@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:

committed by
Edward O'Callaghan

parent
40cc15f55d
commit
3ed016f08f
@ -2282,7 +2282,7 @@ static int it8718f_gpio63_raise(struct board_cfg *cfg)
|
||||
static int p2_not_a_laptop(struct board_cfg *cfg)
|
||||
{
|
||||
/* label this board as not a laptop */
|
||||
g_is_laptop = 0;
|
||||
cfg->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(struct board_cfg *cfg)
|
||||
*/
|
||||
static int p2_whitelist_laptop(struct board_cfg *cfg)
|
||||
{
|
||||
g_is_laptop = 1;
|
||||
cfg->is_laptop = 1;
|
||||
g_laptop_ok = true;
|
||||
msg_pdbg("Whitelisted laptop detected.\n");
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user