mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
hw/sd: Rename read/write_data() as read/write_byte()
The read/write_data() methods write do a single byte access on the data line of a SD card. Rename them as read/write_byte(). Add some documentation (not in "hw/sd/sdcard_legacy.h" which we are going to remove soon). Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200814092346.21825-2-f4bug@amsat.org>
This commit is contained in:
parent
9006f1e706
commit
c769a88d44
5 changed files with 33 additions and 18 deletions
|
@ -110,7 +110,7 @@ void sdbus_write_data(SDBus *sdbus, uint8_t value)
|
|||
if (card) {
|
||||
SDCardClass *sc = SD_CARD_GET_CLASS(card);
|
||||
|
||||
sc->write_data(card, value);
|
||||
sc->write_byte(card, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ uint8_t sdbus_read_data(SDBus *sdbus)
|
|||
if (card) {
|
||||
SDCardClass *sc = SD_CARD_GET_CLASS(card);
|
||||
|
||||
value = sc->read_data(card);
|
||||
value = sc->read_byte(card);
|
||||
}
|
||||
trace_sdbus_read(sdbus_name(sdbus), value);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue