aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-05-13 05:38:36 -0400
committerThierry Reding <treding@nvidia.com>2014-11-13 04:43:49 -0500
commit12e6cecd55e541d3e8110f7dfbb6a601e81733ff (patch)
treeb37309d828e2527a487881a9ec8d92e84913ce9f /include/drm
parentecbbe59bbb1cd2973e031c5b6ba28653d66a17de (diff)
drm: Use const data when creating blob properties
Creating a blob property will always copy the input data so the data that is passed in can be const. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_crtc.h4
-rw-r--r--include/drm/drm_dp_mst_helper.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 628369c08503..ce0dd6c2d73d 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -978,9 +978,9 @@ extern void drm_mode_config_reset(struct drm_device *dev);
978extern void drm_mode_config_cleanup(struct drm_device *dev); 978extern void drm_mode_config_cleanup(struct drm_device *dev);
979 979
980extern int drm_mode_connector_set_path_property(struct drm_connector *connector, 980extern int drm_mode_connector_set_path_property(struct drm_connector *connector,
981 char *path); 981 const char *path);
982extern int drm_mode_connector_update_edid_property(struct drm_connector *connector, 982extern int drm_mode_connector_update_edid_property(struct drm_connector *connector,
983 struct edid *edid); 983 const struct edid *edid);
984 984
985static inline bool drm_property_type_is(struct drm_property *property, 985static inline bool drm_property_type_is(struct drm_property *property,
986 uint32_t type) 986 uint32_t type)
diff --git a/include/drm/drm_dp_mst_helper.h b/include/drm/drm_dp_mst_helper.h
index 338fc1053835..fdcd7f271b66 100644
--- a/include/drm/drm_dp_mst_helper.h
+++ b/include/drm/drm_dp_mst_helper.h
@@ -371,7 +371,7 @@ struct drm_dp_sideband_msg_tx {
371struct drm_dp_mst_topology_mgr; 371struct drm_dp_mst_topology_mgr;
372struct drm_dp_mst_topology_cbs { 372struct drm_dp_mst_topology_cbs {
373 /* create a connector for a port */ 373 /* create a connector for a port */
374 struct drm_connector *(*add_connector)(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port, char *path); 374 struct drm_connector *(*add_connector)(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port, const char *path);
375 void (*destroy_connector)(struct drm_dp_mst_topology_mgr *mgr, 375 void (*destroy_connector)(struct drm_dp_mst_topology_mgr *mgr,
376 struct drm_connector *connector); 376 struct drm_connector *connector);
377 void (*hotplug)(struct drm_dp_mst_topology_mgr *mgr); 377 void (*hotplug)(struct drm_dp_mst_topology_mgr *mgr);