drm/tests: helpers: Add helper for drm_display_mode_from_cea_vic()
commitcaa714f86699bcfb01aa2d698db12d91af7d0d81
authorJinjie Ruan <ruanjinjie@huawei.com>
Wed, 30 Oct 2024 02:35:02 +0000 (30 10:35 +0800)
committerMaxime Ripard <mripard@kernel.org>
Thu, 31 Oct 2024 09:31:34 +0000 (31 10:31 +0100)
tree1f2a110c4355e9c48f5ec5f5dfc97301a48a249a
parent4700fd3e050da8302e60ebd4850d008250fa7204
drm/tests: helpers: Add helper for drm_display_mode_from_cea_vic()

As Maxime suggested, add a new helper
drm_kunit_display_mode_from_cea_vic(), it can replace the direct call
of drm_display_mode_from_cea_vic(), and it will help solving
the `mode` memory leaks.

Acked-by: Maxime Ripard <mripard@kernel.org>
Suggested-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241030023504.530425-2-ruanjinjie@huawei.com
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/tests/drm_kunit_helpers.c
include/drm/drm_kunit_helpers.h