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