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: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20221123-rpi-kunit-tests-v3-1-4615a663a84a@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
This commit is contained in:
Maxime Ripard 2022-12-01 16:11:32 +01:00
parent a3caf7ea0c
commit 0c3627c744
No known key found for this signature in database
GPG Key ID: E3EF0D6F671851C5
5 changed files with 4 additions and 8 deletions

View File

@ -8,12 +8,11 @@
#include <drm/drm_connector.h>
#include <drm/drm_edid.h>
#include <drm/drm_drv.h>
#include <drm/drm_kunit_helpers.h>
#include <drm/drm_modes.h>
#include <drm/drm_modeset_helper_vtables.h>
#include <drm/drm_probe_helper.h>
#include "drm_kunit_helpers.h"
struct drm_client_modeset_test_priv {
struct drm_device *drm;
struct drm_connector connector;

View File

@ -1,14 +1,13 @@
// SPDX-License-Identifier: GPL-2.0
#include <drm/drm_drv.h>
#include <drm/drm_kunit_helpers.h>
#include <drm/drm_managed.h>
#include <kunit/resource.h>
#include <linux/device.h>
#include "drm_kunit_helpers.h"
struct kunit_dev {
struct drm_device base;
};

View File

@ -4,14 +4,13 @@
*/
#include <drm/drm_drv.h>
#include <drm/drm_kunit_helpers.h>
#include <drm/drm_modes.h>
#include <kunit/test.h>
#include <linux/units.h>
#include "drm_kunit_helpers.h"
struct drm_test_modes_priv {
struct drm_device *drm;
};

View File

@ -7,6 +7,7 @@
#include <drm/drm_connector.h>
#include <drm/drm_device.h>
#include <drm/drm_drv.h>
#include <drm/drm_kunit_helpers.h>
#include <drm/drm_mode.h>
#include <drm/drm_modes.h>
#include <drm/drm_modeset_helper_vtables.h>
@ -14,8 +15,6 @@
#include <kunit/test.h>
#include "drm_kunit_helpers.h"
struct drm_probe_helper_test_priv {
struct drm_device *drm;
struct drm_connector connector;