mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +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:

committed by
Edward O'Callaghan

parent
c65379cba2
commit
50f812cfc7
@ -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);
|
||||
|
Reference in New Issue
Block a user