use fdt::Fdt;
mod compatible;
mod node;
pub use compatible::*;
pub use node::*;
pub struct Tree<'a> {
dt: Fdt<'a>,
}
impl<'a> Tree<'a> {
pub const fn device_tree(&self) -> &Fdt {
&self.dt
}
}
impl<'a> From<Fdt<'a>> for Tree<'a> {
fn from(val: Fdt<'a>) -> Self {
Self { dt: val }
}
}