hw/sd: Use sdbus_write_data() instead of sdbus_write_byte when possible
commit62a21be60f8fdf0223fa099fb4e7a495eaf55cf9
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 14 Aug 2020 09:23:44 +0000 (14 11:23 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 21 Aug 2020 14:35:35 +0000 (21 16:35 +0200)
tree006638d6c214186881ebbc211308ab10b76b8dbe
parente35c343dd9c18d4d3e6424e2fab38f08085875d6
hw/sd: Use sdbus_write_data() instead of sdbus_write_byte when possible

Use the recently added sdbus_write_data() to write multiple
bytes at once, instead of looping calling sdbus_write_byte().

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200814092346.21825-6-f4bug@amsat.org>
hw/sd/allwinner-sdhost.c
hw/sd/milkymist-memcard.c
hw/sd/sdhci.c