[igt-dev] [PATCH i-g-t 16/20] tests/psr: Pass data_t pointer to dpms_off_on

Katarzyna Dec katarzyna.dec at intel.com
Fri Apr 13 11:23:34 UTC 2018


On Tue, Apr 10, 2018 at 07:37:28PM -0700, Dhinakaran Pandiyan wrote:
> Consistent with other function signatures in the file.
> 
> Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan at intel.com>
 Reviewed-by: Katarzyna Dec <katarzyna.dec at intel.com>
> ---
>  tests/kms_psr_sink_crc.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c
> index f22edb48..3e06e14e 100644
> --- a/tests/kms_psr_sink_crc.c
> +++ b/tests/kms_psr_sink_crc.c
> @@ -423,11 +423,11 @@ static void setup_test_plane(data_t *data, int test_plane)
>  	igt_display_commit(&data->display);
>  }
>  
> -static void dpms_off_on(data_t data)
> +static void dpms_off_on(data_t *data)
>  {
> -	kmstest_set_connector_dpms(data.drm_fd, data.output->config.connector,
> +	kmstest_set_connector_dpms(data->drm_fd, data->output->config.connector,
>  				   DRM_MODE_DPMS_OFF);
> -	kmstest_set_connector_dpms(data.drm_fd, data.output->config.connector,
> +	kmstest_set_connector_dpms(data->drm_fd, data->output->config.connector,
>  				   DRM_MODE_DPMS_ON);
>  }
>  
> @@ -531,7 +531,7 @@ int main(int argc, char *argv[])
>  		data.op = RENDER;
>  		setup_test_plane(&data, DRM_PLANE_TYPE_PRIMARY);
>  		igt_assert(wait_psr_entry(&data));
> -		dpms_off_on(data);
> +		dpms_off_on(&data);
>  		run_test(&data);
>  		test_cleanup(&data);
>  	}
> -- 
> 2.14.1
> 
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev


More information about the igt-dev mailing list