hw/misc/bcm2835_fb: Move config fields to their own struct
commita02755ece0c0652480ed9d9f2f0355fdc3632fdb
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Aug 2018 12:17:48 +0000 (24 13:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Aug 2018 12:17:48 +0000 (24 13:17 +0100)
treecb1b48f435e3a8d8e1060913ef0f3a759499086c
parent6e0fafe2ef02378c696e7cf84ef41511e3b3b81a
hw/misc/bcm2835_fb: Move config fields to their own struct

The handling of framebuffer properties in the bcm2835_property code
is a bit clumsy, because for each of the many fb related properties
we try to track the value we're about to set and whether we're going
to be setting a value, and then we hand all the new values off
to the framebuffer via a function which takes them all as separate
arguments. It would be simpler if the property code could easily
copy all the framebuffer's current settings, update them with
the new specified values and then ask the framebuffer to switch
to the new set.

As the first part of this refactoring, pull all the fb config
settings fields in BCM2835FBState out into their own struct.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180814144436.679-2-peter.maydell@linaro.org
hw/display/bcm2835_fb.c
hw/misc/bcm2835_property.c
include/hw/display/bcm2835_fb.h