mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 15:26:47 +00:00
fmt
This commit is contained in:
parent
4a2b5932cc
commit
7025b76ef9
@ -1025,7 +1025,6 @@ impl Eq for DeviceId {}
|
|||||||
|
|
||||||
impl IrqHandlerData for DeviceId {}
|
impl IrqHandlerData for DeviceId {}
|
||||||
|
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
/// class_dir列表,通过parent kobject的name和class_dir的name来索引class_dir实例
|
/// class_dir列表,通过parent kobject的name和class_dir的name来索引class_dir实例
|
||||||
static ref CLASS_DIR_KSET_INSTANCE: RwLock<BTreeMap<String, Arc<ClassDir>>> = RwLock::new(BTreeMap::new());
|
static ref CLASS_DIR_KSET_INSTANCE: RwLock<BTreeMap<String, Arc<ClassDir>>> = RwLock::new(BTreeMap::new());
|
||||||
|
@ -8,10 +8,7 @@ use alloc::{
|
|||||||
use crate::{
|
use crate::{
|
||||||
driver::base::{
|
driver::base::{
|
||||||
class::Class,
|
class::Class,
|
||||||
device::{
|
device::{bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable},
|
||||||
bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceType,
|
|
||||||
IdTable,
|
|
||||||
},
|
|
||||||
kobject::{KObjType, KObject, KObjectCommonData, KObjectState, LockedKObjectState},
|
kobject::{KObjType, KObject, KObjectCommonData, KObjectState, LockedKObjectState},
|
||||||
kset::KSet,
|
kset::KSet,
|
||||||
},
|
},
|
||||||
|
@ -10,10 +10,7 @@ use crate::{
|
|||||||
driver::{
|
driver::{
|
||||||
base::{
|
base::{
|
||||||
class::Class,
|
class::Class,
|
||||||
device::{
|
device::{bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable},
|
||||||
bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceType,
|
|
||||||
IdTable,
|
|
||||||
},
|
|
||||||
kobject::{KObjType, KObject, KObjectCommonData, KObjectState, LockedKObjectState},
|
kobject::{KObjType, KObject, KObjectCommonData, KObjectState, LockedKObjectState},
|
||||||
kset::KSet,
|
kset::KSet,
|
||||||
},
|
},
|
||||||
|
@ -9,8 +9,7 @@ use crate::{
|
|||||||
driver::base::{
|
driver::base::{
|
||||||
class::Class,
|
class::Class,
|
||||||
device::{
|
device::{
|
||||||
bus::Bus, device_manager, driver::Driver, Device, DeviceCommonData,
|
bus::Bus, device_manager, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable,
|
||||||
DeviceType, IdTable,
|
|
||||||
},
|
},
|
||||||
kobject::{KObjType, KObject, KObjectCommonData, KObjectState, LockedKObjectState},
|
kobject::{KObjType, KObject, KObjectCommonData, KObjectState, LockedKObjectState},
|
||||||
kset::KSet,
|
kset::KSet,
|
||||||
|
@ -63,9 +63,6 @@ impl Class for TtyClass {
|
|||||||
return &self.subsystem;
|
return &self.subsystem;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn dev_groups(&self) -> &'static [&'static dyn AttributeGroup] {
|
|
||||||
return &[];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 初始化帧缓冲区子系统
|
/// 初始化帧缓冲区子系统
|
||||||
|
@ -11,8 +11,8 @@ use crate::{
|
|||||||
base::{
|
base::{
|
||||||
class::Class,
|
class::Class,
|
||||||
device::{
|
device::{
|
||||||
bus::Bus, device_manager, driver::Driver, Device,
|
bus::Bus, device_manager, driver::Driver, Device, DeviceCommonData, DeviceType,
|
||||||
DeviceCommonData, DeviceType, IdTable,
|
IdTable,
|
||||||
},
|
},
|
||||||
kobject::{KObjType, KObject, KObjectCommonData, KObjectState, LockedKObjectState},
|
kobject::{KObjType, KObject, KObjectCommonData, KObjectState, LockedKObjectState},
|
||||||
kset::KSet,
|
kset::KSet,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user