diff mbox series

[3/9] rust: error: add declaration for ENOTRECOVERABLE error

Message ID 20241218-ncv6336-v1-3-b8d973747f7a@gmail.com
State New
Headers show
Series [1/9] rust: i2c: add basic I2C client abstraction | expand

Commit Message

Fabien Parent Dec. 18, 2024, 11:36 p.m. UTC
From: Fabien Parent <fabien.parent@linaro.org>

Add a missing errno for ENOTRECOVERABLE.

ENOTRECOVERABLE is returned by get_voltage{_sel} from the Regulator
driver API when a voltage cannot be read at bootup and hasn't been
set yet.

Signed-off-by: Fabien Parent <fabien.parent@linaro.org>
---
 rust/kernel/error.rs | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/rust/kernel/error.rs b/rust/kernel/error.rs
index 52c5024324474fc1306047f3fd7516f0023d0313..19c8287032631ee8c4afd3c9c3f1e0709591ba3d 100644
--- a/rust/kernel/error.rs
+++ b/rust/kernel/error.rs
@@ -82,6 +82,7 @@  macro_rules! declare_err {
     declare_err!(EIOCBQUEUED, "iocb queued, will get completion event.");
     declare_err!(ERECALLCONFLICT, "Conflict with recalled state.");
     declare_err!(ENOGRACE, "NFS file lock reclaim refused.");
+    declare_err!(ENOTRECOVERABLE, "State not recoverable.");
 }
 
 /// Generic integer kernel error.