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