mirror of
https://github.com/torvalds/linux.git
synced 2026-04-22 16:53:59 -04:00
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>
This commit is contained in:
@@ -39,8 +39,9 @@ static int drm_probe_helper_test_init(struct kunit *test)
|
||||
KUNIT_ASSERT_NOT_NULL(test, priv);
|
||||
test->priv = priv;
|
||||
|
||||
priv->drm = drm_kunit_device_init(test, DRIVER_MODESET | DRIVER_ATOMIC,
|
||||
"drm-probe-helper-test");
|
||||
priv->drm = drm_kunit_helper_alloc_drm_device(test,
|
||||
DRIVER_MODESET | DRIVER_ATOMIC,
|
||||
"drm-probe-helper-test");
|
||||
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, priv->drm);
|
||||
|
||||
connector = &priv->connector;
|
||||
|
||||
Reference in New Issue
Block a user