We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f010ed commit fb5893fCopy full SHA for fb5893f
1 file changed
rust/kernel/device.rs
@@ -73,7 +73,7 @@ impl<Ctx: DeviceContext> Device<Ctx> {
73
74
/// Returns a reference to the parent device, if any.
75
#[cfg_attr(not(CONFIG_AUXILIARY_BUS), expect(dead_code))]
76
- pub(crate) fn parent(&self) -> Option<&Self> {
+ pub fn parent(&self) -> Option<&Self> {
77
// SAFETY:
78
// - By the type invariant `self.as_raw()` is always valid.
79
// - The parent device is only ever set at device creation.
0 commit comments