Kernel/Storage: Convert StorageDevice class members to be const

It is expected that these class members will be set when the object is
created (so they're set in the class constructor method) and never
change again, as its the driver responsibility to find these values
before creating a StorageDevice object.

This makes it easier to rely on these values later on as we don't expect
them to ever change for a StorageDevice object during its lifetime.
This commit is contained in:
Liav A 2024-02-09 08:14:53 +02:00 committed by Andrew Kaster
parent c8bdcd90a8
commit 4e651d0e4f
Notes: sideshowbarker 2024-07-17 02:05:41 +09:00

View File

@ -109,8 +109,8 @@ private:
// controller among its fellow controllers of the same hardware type in the system.
u32 const m_hardware_relative_controller_id { 0 };
u64 m_max_addressable_block { 0 };
size_t m_blocks_per_page { 0 };
u64 const m_max_addressable_block { 0 };
size_t const m_blocks_per_page { 0 };
};
}