diff options
author | Thierry Reding <treding@nvidia.com> | 2014-05-13 11:38:36 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-11-13 10:43:49 +0100 |
commit | 12e6cecd55e541d3e8110f7dfbb6a601e81733ff (patch) | |
tree | b37309d828e2527a487881a9ec8d92e84913ce9f /drivers/gpu/drm/drm_crtc.c | |
parent | drm: Use size_t for blob property sizes (diff) | |
download | linux-12e6cecd55e541d3e8110f7dfbb6a601e81733ff.tar.xz linux-12e6cecd55e541d3e8110f7dfbb6a601e81733ff.zip |
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 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index d4d783477c99..3ea31bc85263 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c @@ -3940,7 +3940,7 @@ done: static struct drm_property_blob * drm_property_create_blob(struct drm_device *dev, size_t length, - void *data) + const void *data) { struct drm_property_blob *blob; int ret; @@ -4021,7 +4021,7 @@ done: } int drm_mode_connector_set_path_property(struct drm_connector *connector, - char *path) + const char *path) { struct drm_device *dev = connector->dev; size_t size = strlen(path) + 1; @@ -4051,7 +4051,7 @@ EXPORT_SYMBOL(drm_mode_connector_set_path_property); * Zero on success, errno on failure. */ int drm_mode_connector_update_edid_property(struct drm_connector *connector, - struct edid *edid) + const struct edid *edid) { struct drm_device *dev = connector->dev; size_t size; |