Skip to content

Commit 2353354

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

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

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

0 commit comments

Comments
 (0)