Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
commit 086969277e
Notes: sideshowbarker 2024-07-17 16:21:09 +09:00
1665 changed files with 8479 additions and 8479 deletions

View file

@ -14,8 +14,8 @@ namespace Kernel::Memory {
class MappedROM {
public:
const u8* base() const { return region->vaddr().offset(offset).as_ptr(); }
const u8* end() const { return base() + size; }
u8 const* base() const { return region->vaddr().offset(offset).as_ptr(); }
u8 const* end() const { return base() + size; }
OwnPtr<Region> region;
size_t size { 0 };
size_t offset { 0 };
@ -33,7 +33,7 @@ public:
return {};
}
PhysicalAddress paddr_of(const u8* ptr) const { return paddr.offset(ptr - this->base()); }
PhysicalAddress paddr_of(u8 const* ptr) const { return paddr.offset(ptr - this->base()); }
};
}