drm/tests: helpers: Create the device in another function
authorMaxime Ripard <maxime@cerno.tech>
Thu, 1 Dec 2022 15:11:38 +0000 (16:11 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 8 Dec 2022 08:56:55 +0000 (09:56 +0100)
commit9ecd8045bf64f8f277acea4bf35c14b369529f09
treec3ce41a4a03d5593a1fb09dbdbf5189c2492308c
parent1d041a469e5de3d9d1b208e12af9265882dcd221
drm/tests: helpers: Create the device in another function

We'll need in some tests to control when the device needs to be added
and removed, so let's split the device creation from the DRM device
creation function.

Reviewed-by: MaĆ­ra Canal <mcanal@igalia.com>
Link: https://lore.kernel.org/r/20221123-rpi-kunit-tests-v3-7-4615a663a84a@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/tests/drm_client_modeset_test.c
drivers/gpu/drm/tests/drm_kunit_helpers.c
drivers/gpu/drm/tests/drm_modes_test.c
drivers/gpu/drm/tests/drm_probe_helper_test.c
include/drm/drm_kunit_helpers.h