diff options
author | Thierry Reding <treding@nvidia.com> | 2014-05-13 05:36:13 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-11-13 04:43:48 -0500 |
commit | ecbbe59bbb1cd2973e031c5b6ba28653d66a17de (patch) | |
tree | 7db9f365a3e6c370e43b94a009d8fb75622bc71a /drivers/gpu/drm/drm_crtc.c | |
parent | f114040e3ea6e07372334ade75d1ee0775c355e1 (diff) |
drm: Use size_t for blob property sizes
size_t is the standard type when dealing with sizes of all kinds. Use it
consistently when instantiating DRM blob properties.
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 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index e79c8d3700d8..d4d783477c99 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -3938,8 +3938,9 @@ done: | |||
3938 | return ret; | 3938 | return ret; |
3939 | } | 3939 | } |
3940 | 3940 | ||
3941 | static struct drm_property_blob *drm_property_create_blob(struct drm_device *dev, int length, | 3941 | static struct drm_property_blob * |
3942 | void *data) | 3942 | drm_property_create_blob(struct drm_device *dev, size_t length, |
3943 | void *data) | ||
3943 | { | 3944 | { |
3944 | struct drm_property_blob *blob; | 3945 | struct drm_property_blob *blob; |
3945 | int ret; | 3946 | int ret; |
@@ -4023,8 +4024,8 @@ int drm_mode_connector_set_path_property(struct drm_connector *connector, | |||
4023 | char *path) | 4024 | char *path) |
4024 | { | 4025 | { |
4025 | struct drm_device *dev = connector->dev; | 4026 | struct drm_device *dev = connector->dev; |
4026 | int ret, size; | 4027 | size_t size = strlen(path) + 1; |
4027 | size = strlen(path) + 1; | 4028 | int ret; |
4028 | 4029 | ||
4029 | connector->path_blob_ptr = drm_property_create_blob(connector->dev, | 4030 | connector->path_blob_ptr = drm_property_create_blob(connector->dev, |
4030 | size, path); | 4031 | size, path); |
@@ -4053,7 +4054,8 @@ int drm_mode_connector_update_edid_property(struct drm_connector *connector, | |||
4053 | struct edid *edid) | 4054 | struct edid *edid) |
4054 | { | 4055 | { |
4055 | struct drm_device *dev = connector->dev; | 4056 | struct drm_device *dev = connector->dev; |
4056 | int ret, size; | 4057 | size_t size; |
4058 | int ret; | ||
4057 | 4059 | ||
4058 | /* ignore requests to set edid when overridden */ | 4060 | /* ignore requests to set edid when overridden */ |
4059 | if (connector->override_edid) | 4061 | if (connector->override_edid) |