aboutsummaryrefslogtreecommitdiff
path: root/hw/sd/ssi-sd.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-08-14 11:23:42 +0200
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-08-21 16:35:35 +0200
commit8467f62201fd2383d553702f9f9441e2493ece75 (patch)
tree2441a18ce56eca759d8aba24ce196177e85372f6 /hw/sd/ssi-sd.c
parent39017143d6d7a068573da272528d7df71d0d31b4 (diff)
downloadqemu-8467f62201fd2383d553702f9f9441e2493ece75.zip
qemu-8467f62201fd2383d553702f9f9441e2493ece75.tar.gz
qemu-8467f62201fd2383d553702f9f9441e2493ece75.tar.bz2
hw/sd: Rename sdbus_read_data() as sdbus_read_byte()
The sdbus_read_data() method do a single byte access on the data line of a SD bus. Rename it as sdbus_read_byte() and document it. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200814092346.21825-4-f4bug@amsat.org>
Diffstat (limited to 'hw/sd/ssi-sd.c')
-rw-r--r--hw/sd/ssi-sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sd/ssi-sd.c b/hw/sd/ssi-sd.c
index 9210ef5..a7ef9cb 100644
--- a/hw/sd/ssi-sd.c
+++ b/hw/sd/ssi-sd.c
@@ -190,7 +190,7 @@ static uint32_t ssi_sd_transfer(SSISlave *dev, uint32_t val)
s->mode = SSI_SD_DATA_READ;
return 0xfe;
case SSI_SD_DATA_READ:
- val = sdbus_read_data(&s->sdbus);
+ val = sdbus_read_byte(&s->sdbus);
if (!sdbus_data_ready(&s->sdbus)) {
DPRINTF("Data read end\n");
s->mode = SSI_SD_CMD;