aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-08-02 14:31:07 +0200
committerHimbeer <himbeer@disroot.org>2024-08-02 14:31:07 +0200
commit0fce6774bdf80f4d73310189ed9757cb78a26536 (patch)
tree512b4803e48465fbe0c0060e7de3cf9ecda5b5a8
parentf17673bb15713319fea4e9437ffd0b36dcc64d10 (diff)
hwinfo: Treat unknown DevKinds as not user managable
-rw-r--r--src/hwinfo.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hwinfo.zig b/src/hwinfo.zig
index b688c9b..81fc4cc 100644
--- a/src/hwinfo.zig
+++ b/src/hwinfo.zig
@@ -38,8 +38,8 @@ pub const DevKind = enum(u32) {
pub fn isUserManagable(self: DevKind) bool {
return switch (self) {
- .cpus, .plic => false,
- else => true,
+ .pcie, .pci => true,
+ else => false,
};
}
};