src: Unravel cb_{vendor,model} global char * state out tree
This detangles one of the many global states we have
unfortunately accrued over the years. We have however left
some of the remaining mess in the show_id() function as
that is currently dead code although we have factored out
the relevent portion into its own function.
BUG=chromium:478356
BRANCH=none
TEST=still builds
Change-Id: I4e73761db94d54250c5ed9af9f0abfbe46a5a536
Signed-off-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/1639964
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
diff --git a/programmer.h b/programmer.h
index a56a203..ac1714a 100644
--- a/programmer.h
+++ b/programmer.h
@@ -297,9 +297,8 @@
void cleanup_cpu_msr(void);
/* cbtable.c */
+int cb_parse_table(const char **vendor, const char **model);
void lb_vendor_dev_from_string(const char *boardstring);
-int coreboot_init(void);
-extern char *cb_model, *cb_vendor;
extern int partvendor_from_cbtable;
/* dmi.c */