aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2018-08-24 13:17:49 +0100
committerPeter Maydell <peter.maydell@linaro.org>2018-08-24 13:17:49 +0100
commitea662f7cc8685622f393cdb7f7b7d243797a8af5 (patch)
tree1b85d895a318dd19abced1268be2f824145c9729 /include/hw
parent193100b571755023690787bcb1ebc91fcc03ed50 (diff)
downloadqemu-ea662f7cc8685622f393cdb7f7b7d243797a8af5.zip
qemu-ea662f7cc8685622f393cdb7f7b7d243797a8af5.tar.gz
qemu-ea662f7cc8685622f393cdb7f7b7d243797a8af5.tar.bz2
hw/display/bcm2835_fb: Drop unused size and pitch fields
The BCM2835FBState struct has a 'pitch' field which is a cached copy of xres * (bpp >> 3), and a 'size' field which is a cached copy of pitch * yres. However we don't actually do anything with these fields; delete them. We retain the now-unused slots in the VMState struct for migration compatibility. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20180814144436.679-4-peter.maydell@linaro.org
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/display/bcm2835_fb.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/hw/display/bcm2835_fb.h b/include/hw/display/bcm2835_fb.h
index b965698..69cbf2d 100644
--- a/include/hw/display/bcm2835_fb.h
+++ b/include/hw/display/bcm2835_fb.h
@@ -47,10 +47,6 @@ typedef struct {
bool lock, invalidate, pending;
BCM2835FBConfig config;
-
- /* These are just cached values calculated from the config settings */
- uint32_t size;
- uint32_t pitch;
} BCM2835FBState;
void bcm2835_fb_reconfigure(BCM2835FBState *s, BCM2835FBConfig *newconfig);