Evan Benn has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/69864 )
Change subject: bindings: Add FLASHROM_WP_ERR_UNSUPPORTED_STATE ......................................................................
bindings: Add FLASHROM_WP_ERR_UNSUPPORTED_STATE
Add support for new write protect error.
BUG=None BRANCH=None TEST=cargo test
Change-Id: I2adaad6552a601147e779c85a2a51d2e39b91c28 --- M bindings/rust/libflashrom/src/lib.rs 1 file changed, 19 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/64/69864/1
diff --git a/bindings/rust/libflashrom/src/lib.rs b/bindings/rust/libflashrom/src/lib.rs index 39e76ac..95fde56 100644 --- a/bindings/rust/libflashrom/src/lib.rs +++ b/bindings/rust/libflashrom/src/lib.rs @@ -312,6 +312,7 @@ WpErrRangeUnsupported, WpErrModeUnsupported, WpErrRangeListUnavailable, + WpErrUnsupportedState, WpErrUnknown(libflashrom_sys::flashrom_wp_result), }
@@ -341,6 +342,9 @@ libflashrom_sys::flashrom_wp_result::FLASHROM_WP_ERR_RANGE_LIST_UNAVAILABLE => { WPError::WpErrRangeListUnavailable } + libflashrom_sys::flashrom_wp_result::FLASHROM_WP_ERR_UNSUPPORTED_STATE => { + WPError::WpErrUnsupportedState + } _ => WPError::WpErrUnknown(e), // this could also be a panic } }