summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tests/drm_client_modeset_test.c
diff options
context:
space:
mode:
authorMaxime Ripard <maxime@cerno.tech>2022-12-01 18:11:36 +0300
committerMaxime Ripard <maxime@cerno.tech>2022-12-08 11:56:55 +0300
commit83ee69a89f32d60669e66dad1c5d841573e5a8ec (patch)
tree2488adf587eddb38c7762f298b2d3ce42b38ccd4 /drivers/gpu/drm/tests/drm_client_modeset_test.c
parent642ef3fbfe4f304fbb58cb46b198ad284ea66e93 (diff)
downloadlinux-83ee69a89f32d60669e66dad1c5d841573e5a8ec.tar.xz
drm/tests: helpers: Rename the device init helper
The name doesn't really fit the conventions for the other helpers in DRM/KMS, so let's rename it to make it obvious that we allocate a new DRM device. Reviewed-by: MaĆ­ra Canal <mcanal@igalia.com> Link: https://lore.kernel.org/r/20221123-rpi-kunit-tests-v3-5-4615a663a84a@cerno.tech Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Diffstat (limited to 'drivers/gpu/drm/tests/drm_client_modeset_test.c')
-rw-r--r--drivers/gpu/drm/tests/drm_client_modeset_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tests/drm_client_modeset_test.c b/drivers/gpu/drm/tests/drm_client_modeset_test.c
index ed2f62e92fea..6cdf08f582ce 100644
--- a/drivers/gpu/drm/tests/drm_client_modeset_test.c
+++ b/drivers/gpu/drm/tests/drm_client_modeset_test.c
@@ -59,7 +59,8 @@ static int drm_client_modeset_test_init(struct kunit *test)
test->priv = priv;
- priv->drm = drm_kunit_device_init(test, DRIVER_MODESET, "drm-client-modeset-test");
+ priv->drm = drm_kunit_helper_alloc_drm_device(test, DRIVER_MODESET,
+ "drm-client-modeset-test");
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, priv->drm);
ret = drmm_connector_init(priv->drm, &priv->connector,