drm/tests: helpers: Allow to pass a custom drm_driver
authorMaxime Ripard <maxime@cerno.tech>
Thu, 1 Dec 2022 15:11:42 +0000 (16:11 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 8 Dec 2022 08:56:55 +0000 (09:56 +0100)
commitd98780310719bf4076d975c2ff65c44c7c0d929e
treea7b11c2b84e0e3f7f4f886c905fa2d3d9eeb0a8a
parenta9143c5852a7a13d60ef685d27f9617f2a52338b
drm/tests: helpers: Allow to pass a custom drm_driver

Some tests will need to provide their own drm_driver instead of relying
on the dumb one in the helpers, so let's create a helper that allows to
do so.

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