summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoram Park <boram1288.park@samsung.com>2015-12-22 19:41:47 +0900
committerBoram Park <boram1288.park@samsung.com>2015-12-22 19:41:47 +0900
commit0d5cbf02062e400e138cfd5cef05e80ba6af9b57 (patch)
tree807026ec69a773c35328c125847bda934beef987
parentfcc98bd4aedf49f5eecca577bdd57f6336af9673 (diff)
downloadlibtdm-drm-0d5cbf02062e400e138cfd5cef05e80ba6af9b57.tar.gz
libtdm-drm-0d5cbf02062e400e138cfd5cef05e80ba6af9b57.tar.bz2
libtdm-drm-0d5cbf02062e400e138cfd5cef05e80ba6af9b57.zip
change parameter type of layer_set_mode
Change-Id: Ia17e99888be1509c7bd5efc8f919a935ea5ecb76
-rw-r--r--src/tdm_drm.h2
-rw-r--r--src/tdm_drm_display.c4
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;