mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-14 11:42:57 +00:00

We'll need in some tests to control when the device needs to be added and removed, so let's split the device creation from the DRM device creation function. Reviewed-by: Maíra Canal <mcanal@igalia.com> Link: https://lore.kernel.org/r/20221123-rpi-kunit-tests-v3-7-4615a663a84a@cerno.tech Signed-off-by: Maxime Ripard <maxime@cerno.tech>
16 lines
419 B
C
16 lines
419 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#ifndef DRM_KUNIT_HELPERS_H_
|
|
#define DRM_KUNIT_HELPERS_H_
|
|
|
|
struct drm_device;
|
|
struct kunit;
|
|
|
|
struct device *drm_kunit_helper_alloc_device(struct kunit *test);
|
|
void drm_kunit_helper_free_device(struct kunit *test, struct device *dev);
|
|
|
|
struct drm_device *
|
|
drm_kunit_helper_alloc_drm_device(struct kunit *test, struct device *dev,
|
|
u32 features);
|
|
|
|
#endif // DRM_KUNIT_HELPERS_H_
|