IOS/SDIO: Make GetCSDv1/v2 const member functions

This commit is contained in:
Léo Lam 2017-08-07 00:48:51 +08:00
parent c24418a822
commit 9f36499f9e
2 changed files with 4 additions and 4 deletions

View File

@ -503,7 +503,7 @@ u32 SDIOSlot0::GetOCRegister() const
return ocr;
}
std::array<u32, 4> SDIOSlot0::GetCSDv1()
std::array<u32, 4> SDIOSlot0::GetCSDv1() const
{
u64 size = m_card.GetSize();
@ -585,7 +585,7 @@ std::array<u32, 4> SDIOSlot0::GetCSDv1()
}};
}
std::array<u32, 4> SDIOSlot0::GetCSDv2()
std::array<u32, 4> SDIOSlot0::GetCSDv2() const
{
const u64 size = m_card.GetSize();

View File

@ -145,8 +145,8 @@ private:
u32 GetOCRegister() const;
std::array<u32, 4> GetCSDv1();
std::array<u32, 4> GetCSDv2();
std::array<u32, 4> GetCSDv1() const;
std::array<u32, 4> GetCSDv2() const;
void InitSDHC();
u64 GetAddressFromRequest(u32 arg) const;