drivers/elog: provide return status for all operations
commiteec1c28bd424ece0b60abda21912c4e8f51ff3ba
authorAaron Durbin <adurbin@chromium.org>
Sat, 6 Aug 2016 15:02:37 +0000 (6 10:02 -0500)
committerMartin Roth <martinroth@google.com>
Tue, 9 Aug 2016 17:53:21 +0000 (9 19:53 +0200)
tree4eb83b8aa0f4b5bac7cafbd673727313cf3e096f
parent18fedb360f7ac3347782d97150657239632d3f3a
drivers/elog: provide return status for all operations

Instead of relying on global state to determine if an error
occurred provide the ability to know if an add or shrink
operation is successful. Now the call chains report the
error back up the stack and out to the callers.

BUG=chrome-os-partner:55932

Change-Id: Id4ed4d93e331f1bf16e038df69ef067446d00102
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/16104
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
src/drivers/elog/elog.c
src/include/elog.h