summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/i915/i915_pm_lpsp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/i915/i915_pm_lpsp.c b/tests/i915/i915_pm_lpsp.c
index e9a59307..4a187810 100644
--- a/tests/i915/i915_pm_lpsp.c
+++ b/tests/i915/i915_pm_lpsp.c
@@ -82,12 +82,10 @@ static bool dmc_supported(int debugfs)
*/
static void screens_disabled_subtest(data_t *data)
{
- igt_output_t *output;
int valid_output = 0;
- enum pipe pipe;
- for_each_pipe_with_single_output(&data->display, pipe, output) {
- data->output = output;
+ for (int i = 0; i < data->display.n_outputs; i++) {
+ data->output = &data->display.outputs[i];
igt_output_set_pipe(data->output, PIPE_NONE);
igt_display_commit(&data->display);
valid_output++;