drm/vc4: kms: Remove unassigned_channels from the HVS state
authorMaxime Ripard <maxime@cerno.tech>
Fri, 4 Dec 2020 15:11:36 +0000 (16:11 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 15 Dec 2020 10:36:11 +0000 (11:36 +0100)
commit03b03efebeed3a928e168505d32939f35055264a
tree3078aefc840ec0d81ac743c82babd9b5ce56d570
parent9ec03d7f1ed394897891319a4dda75f52c5d292d
drm/vc4: kms: Remove unassigned_channels from the HVS state

The HVS state now has both unassigned_channels that reflects the
channels that are not used in the associated state, and the in_use
boolean for each channel that says whether or not a particular channel
is in use.

Both express pretty much the same thing, and we need the in_use variable
to properly track the commits, so let's get rid of unassigned_channels.

Suggested-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20201204151138.1739736-6-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_kms.c