Commit 0c3627c7 authored by Maxime Ripard's avatar Maxime Ripard

drm/tests: helpers: Move the helper header to include/drm

We'll need to use those helpers from drivers too, so let's move it to a
more visible location.
Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20221123-rpi-kunit-tests-v3-1-4615a663a84a@cerno.techSigned-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
parent a3caf7ea
...@@ -8,12 +8,11 @@ ...@@ -8,12 +8,11 @@
#include <drm/drm_connector.h> #include <drm/drm_connector.h>
#include <drm/drm_edid.h> #include <drm/drm_edid.h>
#include <drm/drm_drv.h> #include <drm/drm_drv.h>
#include <drm/drm_kunit_helpers.h>
#include <drm/drm_modes.h> #include <drm/drm_modes.h>
#include <drm/drm_modeset_helper_vtables.h> #include <drm/drm_modeset_helper_vtables.h>
#include <drm/drm_probe_helper.h> #include <drm/drm_probe_helper.h>
#include "drm_kunit_helpers.h"
struct drm_client_modeset_test_priv { struct drm_client_modeset_test_priv {
struct drm_device *drm; struct drm_device *drm;
struct drm_connector connector; struct drm_connector connector;
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include <drm/drm_drv.h> #include <drm/drm_drv.h>
#include <drm/drm_kunit_helpers.h>
#include <drm/drm_managed.h> #include <drm/drm_managed.h>
#include <kunit/resource.h> #include <kunit/resource.h>
#include <linux/device.h> #include <linux/device.h>
#include "drm_kunit_helpers.h"
struct kunit_dev { struct kunit_dev {
struct drm_device base; struct drm_device base;
}; };
......
...@@ -4,14 +4,13 @@ ...@@ -4,14 +4,13 @@
*/ */
#include <drm/drm_drv.h> #include <drm/drm_drv.h>
#include <drm/drm_kunit_helpers.h>
#include <drm/drm_modes.h> #include <drm/drm_modes.h>
#include <kunit/test.h> #include <kunit/test.h>
#include <linux/units.h> #include <linux/units.h>
#include "drm_kunit_helpers.h"
struct drm_test_modes_priv { struct drm_test_modes_priv {
struct drm_device *drm; struct drm_device *drm;
}; };
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <drm/drm_connector.h> #include <drm/drm_connector.h>
#include <drm/drm_device.h> #include <drm/drm_device.h>
#include <drm/drm_drv.h> #include <drm/drm_drv.h>
#include <drm/drm_kunit_helpers.h>
#include <drm/drm_mode.h> #include <drm/drm_mode.h>
#include <drm/drm_modes.h> #include <drm/drm_modes.h>
#include <drm/drm_modeset_helper_vtables.h> #include <drm/drm_modeset_helper_vtables.h>
...@@ -14,8 +15,6 @@ ...@@ -14,8 +15,6 @@
#include <kunit/test.h> #include <kunit/test.h>
#include "drm_kunit_helpers.h"
struct drm_probe_helper_test_priv { struct drm_probe_helper_test_priv {
struct drm_device *drm; struct drm_device *drm;
struct drm_connector connector; struct drm_connector connector;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment