Skip to content

Commit 926c0c0

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

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

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

0 commit comments

Comments
 (0)