hw/audio/es1370: Replace container_of() by ES1370() QOM cast macro
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230220131837.26292-4-philmd@linaro.org>
This commit is contained in:
parent
d9c214d745
commit
721d8f2540
@ -843,7 +843,8 @@ static const VMStateDescription vmstate_es1370 = {
|
||||
|
||||
static void es1370_on_reset(DeviceState *dev)
|
||||
{
|
||||
ES1370State *s = container_of(dev, ES1370State, dev.qdev);
|
||||
ES1370State *s = ES1370(dev);
|
||||
|
||||
es1370_reset (s);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user