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)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Fri, 9 Jul 2021 16:48:50 +0000 (17:48 +0100)
commit7ccf97eb2d8439b8fbc72b1a1ebd7f376422be32
tree57fac7e5312576fa30bf2272f9e375d09866bbd2
parentf100caadd1f31fde01681b993c8b9641dbdd6611
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