Skip to content

Commit

Permalink
修复fbcon的属性提示读写权限不足的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
fslongjin committed Dec 19, 2023
1 parent 687bab8 commit 77f5177
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/src/driver/video/fbdev/base/fbcon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ impl Attribute for AttrRotate {
}

fn support(&self) -> SysFSOpsSupport {
SysFSOpsSupport::WRITE | SysFSOpsSupport::READ
SysFSOpsSupport::SHOW | SysFSOpsSupport::STORE
}

/// https://code.dragonos.org.cn/xref/linux-6.1.9/drivers/video/fbdev/core/fbcon.c#3226
Expand Down Expand Up @@ -293,7 +293,7 @@ impl Attribute for AttrRotateAll {
}

fn support(&self) -> SysFSOpsSupport {
SysFSOpsSupport::WRITE
SysFSOpsSupport::STORE
}

/// https://code.dragonos.org.cn/xref/linux-6.1.9/drivers/video/fbdev/core/fbcon.c#3204
Expand All @@ -316,7 +316,7 @@ impl Attribute for AttrCursorBlink {
}

fn support(&self) -> SysFSOpsSupport {
SysFSOpsSupport::WRITE | SysFSOpsSupport::READ
SysFSOpsSupport::SHOW | SysFSOpsSupport::STORE
}

/// https://code.dragonos.org.cn/xref/linux-6.1.9/drivers/video/fbdev/core/fbcon.c#3245
Expand Down

0 comments on commit 77f5177

Please sign in to comment.