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