From 0d5cbf02062e400e138cfd5cef05e80ba6af9b57 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Tue, 22 Dec 2015 19:41:47 +0900 Subject: change parameter type of layer_set_mode Change-Id: Ia17e99888be1509c7bd5efc8f919a935ea5ecb76 --- src/tdm_drm.h | 2 +- src/tdm_drm_display.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tdm_drm.h b/src/tdm_drm.h index 5fc9153..41245ab 100644 --- a/src/tdm_drm.h +++ b/src/tdm_drm.h @@ -37,7 +37,7 @@ tdm_error drm_output_commit(tdm_output *output, int sync, void *user_data); tdm_error drm_output_set_commit_handler(tdm_output *output, tdm_output_commit_handler func); tdm_error drm_output_set_dpms(tdm_output *output, tdm_output_dpms dpms_value); tdm_error drm_output_get_dpms(tdm_output *output, tdm_output_dpms *dpms_value); -tdm_error drm_output_set_mode(tdm_output *output, tdm_output_mode *mode); +tdm_error drm_output_set_mode(tdm_output *output, const tdm_output_mode *mode); tdm_error drm_output_get_mode(tdm_output *output, const tdm_output_mode **mode); tdm_error drm_layer_get_capability(tdm_layer *layer, tdm_caps_layer *caps); tdm_error drm_layer_set_property(tdm_layer *layer, unsigned int id, tdm_value value); diff --git a/src/tdm_drm_display.c b/src/tdm_drm_display.c index 645a086..777b2a6 100644 --- a/src/tdm_drm_display.c +++ b/src/tdm_drm_display.c @@ -60,7 +60,7 @@ struct _tdm_drm_output_data tdm_output_conn_status status; int mode_changed; - tdm_output_mode *current_mode; + const tdm_output_mode *current_mode; int waiting_vblank_event; }; @@ -1203,7 +1203,7 @@ drm_output_get_dpms(tdm_output *output, tdm_output_dpms *dpms_value) } tdm_error -drm_output_set_mode(tdm_output *output, tdm_output_mode *mode) +drm_output_set_mode(tdm_output *output, const tdm_output_mode *mode) { tdm_drm_output_data *output_data = output; -- cgit v1.2.3