mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-21 13:26:35 +00:00
新增CommonAttrGroup,基本支持sysfs下各种类型设备的uevent属性文件的读测试
This commit is contained in:
@ -11,8 +11,8 @@ use crate::{
|
||||
base::{
|
||||
class::Class,
|
||||
device::{
|
||||
bus::Bus, device_manager, driver::Driver, Device, DeviceCommonData, DeviceType,
|
||||
IdTable,
|
||||
bus::Bus, device_manager, driver::Driver, CommonAttrGroup, Device,
|
||||
DeviceCommonData, DeviceType, IdTable,
|
||||
},
|
||||
kobject::{KObjType, KObject, KObjectCommonData, KObjectState, LockedKObjectState},
|
||||
kset::KSet,
|
||||
@ -235,7 +235,7 @@ impl Device for FbConsoleDevice {
|
||||
}
|
||||
|
||||
fn attribute_groups(&self) -> Option<&'static [&'static dyn AttributeGroup]> {
|
||||
return Some(&[&AnonymousAttributeGroup]);
|
||||
return Some(&[&AnonymousAttributeGroup, &CommonAttrGroup]);
|
||||
}
|
||||
|
||||
fn dev_parent(&self) -> Option<Weak<dyn Device>> {
|
||||
|
Reference in New Issue
Block a user