drivers/elog: remove unnecessary global state
There were 3 variables indicating the state of the event log region. However, there's no need to keep track of those individually. The only thing required is to know is if elog_scan_flash() failed. There's no other tracking required beyond that. BUG=chrome-os-partner:55932 Change-Id: I88ad32091d3c37966a2ac6272f8ad95bcc8c4270 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/16100 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
committed by
Martin Roth
parent
0284f62db2
commit
9d130a9e10
@@ -45,20 +45,4 @@ struct event_header {
|
||||
/* SMBIOS Type 15 related constants */
|
||||
#define ELOG_HEADER_TYPE_OEM 0x88
|
||||
|
||||
typedef enum elog_area_state {
|
||||
ELOG_AREA_UNDEFINED, /* Initial boot strap state */
|
||||
ELOG_AREA_EMPTY, /* Entire area is empty */
|
||||
ELOG_AREA_HAS_CONTENT, /* Area has some content */
|
||||
} elog_area_state;
|
||||
|
||||
typedef enum elog_header_state {
|
||||
ELOG_HEADER_INVALID,
|
||||
ELOG_HEADER_VALID,
|
||||
} elog_header_state;
|
||||
|
||||
typedef enum elog_event_buffer_state {
|
||||
ELOG_EVENT_BUFFER_OK,
|
||||
ELOG_EVENT_BUFFER_CORRUPTED,
|
||||
} elog_event_buffer_state;
|
||||
|
||||
#endif /* ELOG_INTERNAL_H_ */
|
||||
|
Reference in New Issue
Block a user