]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: plane: Take possible_crtcs as an argument
authorMaxime Ripard <maxime@cerno.tech>
Mon, 11 Jul 2022 17:38:47 +0000 (19:38 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 13 Jul 2022 08:46:07 +0000 (10:46 +0200)
commite89123d9d7e568356579cb6a536ce2aa6967ba7e
tree256466355365ebd0d5af75f75316aa2383344177
parent8ecc4bcd97141f13f6cacdbb5be9766e0da34f65
drm/vc4: plane: Take possible_crtcs as an argument

vc4_plane_init() currently initialises the plane with no possible CRTCs,
and will expect the caller to set it up by itself.

Let's change that logic a bit to follow the syntax of
drm_universal_plane_init() and pass the possible CRTCs bitmask as an
argument to the function instead.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220711173939.1132294-18-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_plane.c