Skip to content

Commit f443db9

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

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
@@ -339,7 +339,7 @@ impl<Ctx: DeviceContext> Device<Ctx> {
339339

340340
/// Returns a reference to the parent device, if any.
341341
#[cfg_attr(not(CONFIG_AUXILIARY_BUS), expect(dead_code))]
342-
pub(crate) fn parent(&self) -> Option<&Device> {
342+
pub fn parent(&self) -> Option<&Device> {
343343
// SAFETY:
344344
// - By the type invariant `self.as_raw()` is always valid.
345345
// - The parent device is only ever set at device creation.

0 commit comments

Comments
 (0)