On 6/10/26 11:44, Bernhard Beschow wrote:
An enumeration is checked by the compiler, so is more robust. It also helps auto-completion, so is more ergonomic. Change the state attribute to be of type enum SDCardStates rather than int32_t to achieve both.Signed-off-by: Bernhard Beschow <[email protected]> --- hw/sd/sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
