[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 2/3] hw/display/bcm2835_fb: Use bcm2835_fb_reconfigure in bcm2
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 2/3] hw/display/bcm2835_fb: Use bcm2835_fb_reconfigure in bcm2835_fb_reset |
Date: |
Tue, 23 Mar 2021 17:14:42 +0100 |
Directly use bcm2835_fb_reconfigure() instead of open coding it.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
hw/display/bcm2835_fb.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/hw/display/bcm2835_fb.c b/hw/display/bcm2835_fb.c
index 3e63d58e0b2..a9c2e57d1c6 100644
--- a/hw/display/bcm2835_fb.c
+++ b/hw/display/bcm2835_fb.c
@@ -396,11 +396,7 @@ static void bcm2835_fb_reset(DeviceState *dev)
s->pending = false;
- s->config = s->initial_config;
-
- s->invalidate = true;
- qemu_console_resize(s->con, s->initial_config.xres,
s->initial_config.yres);
- s->lock = false;
+ bcm2835_fb_reconfigure(s, &s->initial_config);
}
static void bcm2835_fb_realize(DeviceState *dev, Error **errp)
--
2.26.2