diff options
Diffstat (limited to 'src/tdm_drm_display.c')
-rw-r--r-- | src/tdm_drm_display.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tdm_drm_display.c b/src/tdm_drm_display.c index 10c820c..5c3114f 100644 --- a/src/tdm_drm_display.c +++ b/src/tdm_drm_display.c @@ -337,7 +337,7 @@ static hal_tdm_error _tdm_drm_display_create_layer_list(tdm_drm_display *display_data) { tdm_drm_output *output_data = NULL; - int i; + unsigned int i; if (LIST_IS_EMPTY(&display_data->output_list)) { TDM_BACKEND_ERR("no output"); @@ -408,7 +408,7 @@ _tdm_drm_display_get_property(tdm_drm_display *display_data, int *is_immutable) { drmModeObjectPropertiesPtr props = NULL; - int i; + unsigned int i; props = drmModeObjectGetProperties(display_data->drm_fd, obj_id, obj_type); if (!props) @@ -445,10 +445,10 @@ _tdm_drm_display_create_layer_list_type(tdm_drm_display *display_data) drmModePlanePtr *planes = NULL; unsigned int *types = NULL; unsigned int type = 0; - int plane_cnt, primary_cnt, ovl_cnt, cursor_cnt; + unsigned int plane_cnt, primary_cnt, ovl_cnt, cursor_cnt; int opos_next, cpos_next; hal_tdm_error ret; - int i; + unsigned int i; if (LIST_IS_EMPTY(&display_data->output_list)) { TDM_BACKEND_ERR("no output"); @@ -976,7 +976,7 @@ drm_output_get_capability(hal_tdm_output *output, hal_tdm_caps_output *caps) drmModeConnectorPtr connector = NULL; drmModeCrtcPtr crtc = NULL; drmModeObjectPropertiesPtr props = NULL; - int i; + unsigned int i; hal_tdm_error ret; RETURN_VAL_IF_FAIL(output_data, HAL_TDM_ERROR_INVALID_PARAMETER); @@ -1095,7 +1095,7 @@ drm_output_get_property(hal_tdm_output *output, unsigned int id, hal_tdm_value * tdm_drm_output *output_data = output; tdm_drm_display *display_data; drmModeObjectPropertiesPtr props; - int i; + unsigned int i; RETURN_VAL_IF_FAIL(output_data, HAL_TDM_ERROR_INVALID_PARAMETER); RETURN_VAL_IF_FAIL(output_data->crtc_id > 0, HAL_TDM_ERROR_INVALID_PARAMETER); @@ -1283,7 +1283,7 @@ drm_output_get_dpms(hal_tdm_output *output, hal_tdm_output_dpms *dpms_value) tdm_drm_output *output_data = output; tdm_drm_display *display_data; drmModeObjectPropertiesPtr props; - int i; + unsigned int i; RETURN_VAL_IF_FAIL(output_data, HAL_TDM_ERROR_INVALID_PARAMETER); RETURN_VAL_IF_FAIL(dpms_value, HAL_TDM_ERROR_INVALID_PARAMETER); @@ -1414,7 +1414,7 @@ drm_layer_get_capability(tdm_drm_layer *layer, tdm_drm_caps_layer *caps) tdm_drm_display *display_data; drmModePlanePtr plane = NULL; drmModeObjectPropertiesPtr props = NULL; - int i, format_count = 0; + unsigned int i, format_count = 0; hal_tdm_error ret; RETURN_VAL_IF_FAIL(layer_data, HAL_TDM_ERROR_INVALID_PARAMETER); @@ -1530,7 +1530,7 @@ drm_layer_get_property(tdm_drm_layer *layer, unsigned int id, hal_tdm_value *val tdm_drm_layer *layer_data = layer; tdm_drm_display *display_data; drmModeObjectPropertiesPtr props; - int i; + unsigned int i; RETURN_VAL_IF_FAIL(layer_data, HAL_TDM_ERROR_INVALID_PARAMETER); RETURN_VAL_IF_FAIL(layer_data->plane_id > 0, HAL_TDM_ERROR_INVALID_PARAMETER); |