diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-20 14:15:15 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-27 22:29:02 +0100 |
commit | 721d8f254090c8f2b716bf988fcacac16bd9ecf7 (patch) | |
tree | ff7b3c3e05c6c2f9e8d343dbcec955832f74c751 | |
parent | d9c214d745f47791710a3d2cc94a439bf9f83776 (diff) |
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>
-rw-r--r-- | hw/audio/es1370.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/audio/es1370.c b/hw/audio/es1370.c index ea76c9a734..4f738a0ad8 100644 --- a/hw/audio/es1370.c +++ b/hw/audio/es1370.c @@ -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); } |