Skip to content

Commit

Permalink
Revert "drm/vc4: tests: Add helper to add a new plane to a state"
Browse files Browse the repository at this point in the history
This reverts commit 379066b.
  • Loading branch information
pelwell committed Aug 5, 2024
1 parent a8366ae commit 5b74986
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
3 changes: 0 additions & 3 deletions drivers/gpu/drm/vc4/tests/vc4_mock.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ struct vc4_dummy_plane {
struct vc4_plane plane;
};

struct vc4_dummy_plane *vc4_dummy_plane(struct kunit *test,
struct drm_device *drm,
enum drm_plane_type type);
struct drm_plane *vc4_dummy_plane(struct kunit *test, struct drm_device *drm,
enum drm_plane_type type);

Expand Down
22 changes: 0 additions & 22 deletions drivers/gpu/drm/vc4/tests/vc4_mock_plane.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-2.0

#include <drm/drm_kunit_helpers.h>
#include <drm/drm_atomic_uapi.h>
#include <drm/drm_plane.h>

#include <kunit/test.h>
Expand Down Expand Up @@ -41,24 +40,3 @@ struct drm_plane *vc4_dummy_plane(struct kunit *test, struct drm_device *drm,

return plane;
}

struct drm_plane *
vc4_mock_atomic_add_plane(struct kunit *test,
struct drm_atomic_state *state,
struct drm_crtc *crtc)
{
struct drm_plane_state *plane_state;
struct drm_plane *plane;
int ret;

plane = vc4_mock_find_plane_for_crtc(test, crtc);
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, plane);

plane_state = drm_atomic_get_plane_state(state, plane);
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, plane_state);

ret = drm_atomic_set_crtc_for_plane(plane_state, crtc);
KUNIT_EXPECT_EQ(test, ret, 0);

return plane;
}

0 comments on commit 5b74986

Please sign in to comment.