Skip to content

Commit fb5893f

Browse files
committed
rust: device: HACK? make parent() public
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 7f010ed commit fb5893f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl<Ctx: DeviceContext> Device<Ctx> {
7373

7474
/// Returns a reference to the parent device, if any.
7575
#[cfg_attr(not(CONFIG_AUXILIARY_BUS), expect(dead_code))]
76-
pub(crate) fn parent(&self) -> Option<&Self> {
76+
pub fn parent(&self) -> Option<&Self> {
7777
// SAFETY:
7878
// - By the type invariant `self.as_raw()` is always valid.
7979
// - The parent device is only ever set at device creation.

0 commit comments

Comments
 (0)