]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/sd/sdcard: Remove SDState::mode field
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 31 Jul 2025 09:44:28 +0000 (11:44 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 5 Aug 2025 14:05:56 +0000 (16:05 +0200)
commit40b242884ed7aeb30613dd42eca6e8712d607c46
tree79deb6a17da7e03a68a96799c29956273823c054
parent823d9b00452b62dcee1b0692c578c6fa5eef517e
hw/sd/sdcard: Remove SDState::mode field

SD card mode is a superset of its state (SDState::state),
no need to migrate it.

Use sd_mode() to get the SDCardModes from the SDCardStates.

Fixes: 50a5be6c3d5 ("hw/sd.c: add SD card save/load support")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250804133406.17456-11-philmd@linaro.org>
hw/sd/sd.c
hw/sd/trace-events