commit | ab5b57a1cc2729bb0934c499e982617cf7a3594a | [log] [tgz] |
---|---|---|
author | Slawomir Kwasniak <slawomir.kwasniak@hensoldt-cyber.com> | Wed Sep 23 16:56:30 2020 +0200 |
committer | Slawomir Kwasniak <slawomir.kwasniak@hensoldt-cyber.com> | Mon Oct 12 13:55:27 2020 +0200 |
tree | 3b380a34f4849810a7a4cdb25374d180458e748c | |
parent | f9eac7d1c734bf5b21d07efe5eae01f125303c44 [diff] |
libsdhcdrivers: Change mmc_card_capacity type mmc_card_capacity will now return signed value due to the following reasons: 1. Function returns negative value in case of the failure, so naturally signed type must be used. 2. Signed 64 bit value is enough for holding the theoretical SD card size of 8 EiB (2^63 = 2^3 * 2^60 = 2^3 * 1024 ^ 6) what is more than enough when taking into account that the latest SDUC format maximum size is 128 TiB (2^7 * 1024^4).