This will ease to trace mode changes (in the following patchs). Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> --- hw/sd/sd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 6227a3518b..f63459d2c0 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -128,7 +128,7 @@ struct SDState { bool enable; }; -static void sd_set_mode(SDState *sd) +static void sd_update_mode(SDState *sd) { switch (sd->state) { case sd_inactive_state: @@ -1470,7 +1470,7 @@ int sd_do_command(SDState *sd, SDRequest *req, uint8_t *response) } last_state = sd->state; - sd_set_mode(sd); + sd_update_mode(sd); if (sd->expecting_acmd) { sd->expecting_acmd = false; -- 2.15.1