drm/vc4: hvs: Provide a function to initialize the HVS structure
authorMaxime Ripard <maxime@cerno.tech>
Thu, 1 Dec 2022 15:11:47 +0000 (16:11 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 8 Dec 2022 08:56:56 +0000 (09:56 +0100)
commit640dbcc91dec76aeeae782d97f0e8ed3c65b58f6
tree03c8a802ef01852f96bd951af20c88220e3d1907
parent0656ce1240bc44c03ee31499e8e739b7d61138bb
drm/vc4: hvs: Provide a function to initialize the HVS structure

We'll need to initialize the HVS structure without a backing device to
create a mock we'll use for testing.

Split the structure initialization part into a separate function.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20221123-rpi-kunit-tests-v3-16-4615a663a84a@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_hvs.c