diff options
author | Edward O'Callaghan <quasisec@google.com> | 2023-03-06 11:12:37 +1100 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2023-04-02 01:01:28 +0000 |
commit | 3ed016f08faa011736443f3b39bf68187d974781 (patch) | |
tree | 2463d5cb64803d97e3783a49add5b9c33c253c18 /board_enable.c | |
parent | 40cc15f55db5bf68c38be5a5cb695c38e75ffb37 (diff) | |
download | flashrom-3ed016f08faa011736443f3b39bf68187d974781.tar.gz flashrom-3ed016f08faa011736443f3b39bf68187d974781.tar.bz2 flashrom-3ed016f08faa011736443f3b39bf68187d974781.zip |
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>
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 fc212835..f95430a8 100644 --- a/board_enable.c +++ b/board_enable.c @@ -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; |