From 9f36499f9e586a0360b259898de8dd3d487cb267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Mon, 7 Aug 2017 00:48:51 +0800 Subject: [PATCH] IOS/SDIO: Make GetCSDv1/v2 const member functions --- Source/Core/Core/IOS/SDIO/SDIOSlot0.cpp | 4 ++-- Source/Core/Core/IOS/SDIO/SDIOSlot0.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/IOS/SDIO/SDIOSlot0.cpp b/Source/Core/Core/IOS/SDIO/SDIOSlot0.cpp index 7b13e6df6b..a832c66b38 100644 --- a/Source/Core/Core/IOS/SDIO/SDIOSlot0.cpp +++ b/Source/Core/Core/IOS/SDIO/SDIOSlot0.cpp @@ -503,7 +503,7 @@ u32 SDIOSlot0::GetOCRegister() const return ocr; } -std::array SDIOSlot0::GetCSDv1() +std::array SDIOSlot0::GetCSDv1() const { u64 size = m_card.GetSize(); @@ -585,7 +585,7 @@ std::array SDIOSlot0::GetCSDv1() }}; } -std::array SDIOSlot0::GetCSDv2() +std::array SDIOSlot0::GetCSDv2() const { const u64 size = m_card.GetSize(); diff --git a/Source/Core/Core/IOS/SDIO/SDIOSlot0.h b/Source/Core/Core/IOS/SDIO/SDIOSlot0.h index 6f0f0255c6..ee6e3115e0 100644 --- a/Source/Core/Core/IOS/SDIO/SDIOSlot0.h +++ b/Source/Core/Core/IOS/SDIO/SDIOSlot0.h @@ -145,8 +145,8 @@ private: u32 GetOCRegister() const; - std::array GetCSDv1(); - std::array GetCSDv2(); + std::array GetCSDv1() const; + std::array GetCSDv2() const; void InitSDHC(); u64 GetAddressFromRequest(u32 arg) const;