diff options
-rw-r--r-- | src/tdm_backend_log.c | 2 | ||||
-rw-r--r-- | src/tdm_drm_display.c | 18 | ||||
-rw-r--r-- | src/tdm_drm_format.c | 4 | ||||
-rw-r--r-- | src/tdm_drm_hwc.c | 6 | ||||
-rw-r--r-- | src/tdm_drm_pp.c | 4 |
5 files changed, 17 insertions, 17 deletions
diff --git a/src/tdm_backend_log.c b/src/tdm_backend_log.c index e4d17c0..662ad42 100644 --- a/src/tdm_backend_log.c +++ b/src/tdm_backend_log.c @@ -33,7 +33,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #undef LOG_TAG #define LOG_TAG "TDM_BACKEND" -unsigned int tbm_log_debug_level = TDM_BACKEND_LOG_LEVEL_INFO; +int tbm_log_debug_level = TDM_BACKEND_LOG_LEVEL_INFO; static void _tdm_backend_log_dlog_print(int level, const char *fmt, va_list arg) 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); diff --git a/src/tdm_drm_format.c b/src/tdm_drm_format.c index 143bf41..cc717b5 100644 --- a/src/tdm_drm_format.c +++ b/src/tdm_drm_format.c @@ -105,7 +105,7 @@ static const tbm_drm_format_data formats[] = { uint32_t tdm_drm_format_to_drm_format(tbm_format format) { - int i; + unsigned int i; for (i = 0; i < NUM_FORMATS; i++) if (formats[i].tbm_format == format) @@ -119,7 +119,7 @@ tdm_drm_format_to_drm_format(tbm_format format) tbm_format tdm_drm_format_to_tbm_format(uint32_t format) { - int i; + unsigned int i; for (i = 0; i < NUM_FORMATS; i++) if (formats[i].drm_format == format) diff --git a/src/tdm_drm_hwc.c b/src/tdm_drm_hwc.c index 5f7bc6a..6903d53 100644 --- a/src/tdm_drm_hwc.c +++ b/src/tdm_drm_hwc.c @@ -175,7 +175,7 @@ static void _print_validate_result(tdm_drm_hwc *hwc_data, hal_tdm_hwc_window **composited_wnds, uint32_t num_wnds) { tdm_drm_hwc_window_data *hwc_window_data = NULL; - int i; + unsigned int i; for (i = 0; i < num_wnds; i++) { hwc_window_data = composited_wnds[i]; @@ -358,7 +358,7 @@ _drm_hwc_apply_policy(tdm_drm_hwc *hwc_data , hal_tdm_hwc_window **composited_wn int ui_lzpos_bottom = ZPOS_0; int num_ui_layers = NUM_UI_LAYERS; int set_clients_below = 0; - int i = 0; + unsigned int i = 0; composited_list = (tdm_drm_hwc_window_data **)composited_wnds; @@ -636,7 +636,7 @@ drm_hwc_get_changed_composition_types(hal_tdm_hwc *hwc, uint32_t *num_elements, { tdm_drm_hwc *hwc_data = hwc; tdm_drm_hwc_window_data *hwc_window_data = NULL; - int num = 0; + unsigned int num = 0; RETURN_VAL_IF_FAIL(hwc_data != NULL, HAL_TDM_ERROR_INVALID_PARAMETER); RETURN_VAL_IF_FAIL(num_elements != NULL, HAL_TDM_ERROR_INVALID_PARAMETER); diff --git a/src/tdm_drm_pp.c b/src/tdm_drm_pp.c index dc684dd..d59517c 100644 --- a/src/tdm_drm_pp.c +++ b/src/tdm_drm_pp.c @@ -192,7 +192,7 @@ _tdm_drm_pp_convert(tdm_drm_pp_buffer *buffer, hal_tdm_info_pp *info) int rotate = 0, hflip = 0; tbm_bo bo = NULL; int bo_cnt = 0; - int bo_size = 0; + unsigned int bo_size = 0; RETURN_VAL_IF_FAIL(buffer != NULL, HAL_TDM_ERROR_INVALID_PARAMETER); RETURN_VAL_IF_FAIL(buffer->src != NULL, HAL_TDM_ERROR_INVALID_PARAMETER); @@ -283,7 +283,7 @@ fail_convert: hal_tdm_error tdm_drm_pp_get_capability(tdm_drm_display *display_data, hal_tdm_caps_pp *caps) { - int i; + unsigned int i; if (!caps) { TDM_BACKEND_ERR("invalid params"); |