diff options
Diffstat (limited to 'src/hwinfo.zig')
-rw-r--r-- | src/hwinfo.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hwinfo.zig b/src/hwinfo.zig index 98e767a..8e937c2 100644 --- a/src/hwinfo.zig +++ b/src/hwinfo.zig @@ -36,7 +36,7 @@ pub const DevKind = enum(u32) { return ParseError.UnknownDevKind; } - pub fn isUserManagable(self: DevKind) bool { + pub fn isUserManageable(self: DevKind) bool { return switch (self) { .pcie, .pci => true, else => false, @@ -131,7 +131,7 @@ pub inline fn byKind(kind: DevKind) !ByKind { pub fn byAddress(reg_addr: usize, only_user_manageable: bool) !?Dev { var it = try iterator(); while (it.next()) |device| { - const authorized = !only_user_manageable or device.kind.isUserManagable(); + const authorized = !only_user_manageable or device.kind.isUserManageable(); if (device.reg.addr == reg_addr and authorized) return device; } else return null; } |