mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
hw: Use IEC binary prefix definitions from "qemu/units.h"
Code change produced with:
$ git ls-files | egrep '\.[ch]$' | \
xargs sed -i -e 's/\(\W[KMGTPE]\)_BYTE/\1iB/g'
Suggested-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au> (ppc parts)
Message-Id: <20180625124238.25339-6-f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5fa96cad01
commit
d23b6caadb
19 changed files with 76 additions and 80 deletions
|
|
@ -409,7 +409,7 @@ static void sdhci_end_transfer(SDHCIState *s)
|
|||
/*
|
||||
* Programmed i/o data transfer
|
||||
*/
|
||||
#define BLOCK_SIZE_MASK (4 * K_BYTE - 1)
|
||||
#define BLOCK_SIZE_MASK (4 * KiB - 1)
|
||||
|
||||
/* Fill host controller's read buffer with BLKSIZE bytes of data from card */
|
||||
static void sdhci_read_block_from_card(SDHCIState *s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue