drm/vc4: hdmi: Simplify the connector state retrieval
authorMaxime Ripard <maxime@cerno.tech>
Thu, 27 Jan 2022 11:14:04 +0000 (12:14 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 2 Feb 2022 09:44:05 +0000 (10:44 +0100)
commit34554946143df8aaeaa4ce87a1bf3ba04a8ec20b
tree003198f24b23f0d7aef13cde7ddccc9adc5cfb26
parent70c0b80d0bbb97c072c4a9c3e8b0f68a9e22d7d2
drm/vc4: hdmi: Simplify the connector state retrieval

When we have the entire DRM state, retrieving the connector state only
requires the drm_connector pointer. Fortunately for us, we have
allocated it as a part of the vc4_hdmi structure, so we can retrieve get
a pointer by simply accessing our field in that structure.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220127111404.221882-1-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c