diff options
author | Thierry Reding <treding@nvidia.com> | 2014-11-03 07:23:02 -0500 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-11-13 10:18:32 -0500 |
commit | 71c38629d6bd4be74009fc73946255254477c77e (patch) | |
tree | 3e214123164a5b1f205b3d9021f82d9d684fc315 | |
parent | 3feaf3e5ae89347a2ab3b9e994f1f3d85c09185f (diff) |
drm/tegra: gem: Use more consistent data types
Use size_t consistently for sizes and u32/u64 instead of uint32_t and
uint64_t.
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | drivers/gpu/drm/tegra/gem.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/tegra/gem.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpu/drm/tegra/gem.c b/drivers/gpu/drm/tegra/gem.c index 8348783f7d64..4a4f967c6397 100644 --- a/drivers/gpu/drm/tegra/gem.c +++ b/drivers/gpu/drm/tegra/gem.c | |||
@@ -264,7 +264,7 @@ static int tegra_bo_alloc(struct drm_device *drm, struct tegra_bo *bo, | |||
264 | return 0; | 264 | return 0; |
265 | } | 265 | } |
266 | 266 | ||
267 | struct tegra_bo *tegra_bo_create(struct drm_device *drm, unsigned int size, | 267 | struct tegra_bo *tegra_bo_create(struct drm_device *drm, size_t size, |
268 | unsigned long flags) | 268 | unsigned long flags) |
269 | { | 269 | { |
270 | struct tegra_bo *bo; | 270 | struct tegra_bo *bo; |
@@ -294,9 +294,9 @@ release: | |||
294 | 294 | ||
295 | struct tegra_bo *tegra_bo_create_with_handle(struct drm_file *file, | 295 | struct tegra_bo *tegra_bo_create_with_handle(struct drm_file *file, |
296 | struct drm_device *drm, | 296 | struct drm_device *drm, |
297 | unsigned int size, | 297 | size_t size, |
298 | unsigned long flags, | 298 | unsigned long flags, |
299 | unsigned int *handle) | 299 | u32 *handle) |
300 | { | 300 | { |
301 | struct tegra_bo *bo; | 301 | struct tegra_bo *bo; |
302 | int err; | 302 | int err; |
@@ -415,7 +415,7 @@ int tegra_bo_dumb_create(struct drm_file *file, struct drm_device *drm, | |||
415 | } | 415 | } |
416 | 416 | ||
417 | int tegra_bo_dumb_map_offset(struct drm_file *file, struct drm_device *drm, | 417 | int tegra_bo_dumb_map_offset(struct drm_file *file, struct drm_device *drm, |
418 | uint32_t handle, uint64_t *offset) | 418 | u32 handle, u64 *offset) |
419 | { | 419 | { |
420 | struct drm_gem_object *gem; | 420 | struct drm_gem_object *gem; |
421 | struct tegra_bo *bo; | 421 | struct tegra_bo *bo; |
diff --git a/drivers/gpu/drm/tegra/gem.h b/drivers/gpu/drm/tegra/gem.h index 3dd4165f812a..6c5f12ac0087 100644 --- a/drivers/gpu/drm/tegra/gem.h +++ b/drivers/gpu/drm/tegra/gem.h | |||
@@ -52,18 +52,18 @@ static inline struct tegra_bo *to_tegra_bo(struct drm_gem_object *gem) | |||
52 | return container_of(gem, struct tegra_bo, gem); | 52 | return container_of(gem, struct tegra_bo, gem); |
53 | } | 53 | } |
54 | 54 | ||
55 | struct tegra_bo *tegra_bo_create(struct drm_device *drm, unsigned int size, | 55 | struct tegra_bo *tegra_bo_create(struct drm_device *drm, size_t size, |
56 | unsigned long flags); | 56 | unsigned long flags); |
57 | struct tegra_bo *tegra_bo_create_with_handle(struct drm_file *file, | 57 | struct tegra_bo *tegra_bo_create_with_handle(struct drm_file *file, |
58 | struct drm_device *drm, | 58 | struct drm_device *drm, |
59 | unsigned int size, | 59 | size_t size, |
60 | unsigned long flags, | 60 | unsigned long flags, |
61 | unsigned int *handle); | 61 | u32 *handle); |
62 | void tegra_bo_free_object(struct drm_gem_object *gem); | 62 | void tegra_bo_free_object(struct drm_gem_object *gem); |
63 | int tegra_bo_dumb_create(struct drm_file *file, struct drm_device *drm, | 63 | int tegra_bo_dumb_create(struct drm_file *file, struct drm_device *drm, |
64 | struct drm_mode_create_dumb *args); | 64 | struct drm_mode_create_dumb *args); |
65 | int tegra_bo_dumb_map_offset(struct drm_file *file, struct drm_device *drm, | 65 | int tegra_bo_dumb_map_offset(struct drm_file *file, struct drm_device *drm, |
66 | uint32_t handle, uint64_t *offset); | 66 | u32 handle, u64 *offset); |
67 | 67 | ||
68 | int tegra_drm_mmap(struct file *file, struct vm_area_struct *vma); | 68 | int tegra_drm_mmap(struct file *file, struct vm_area_struct *vma); |
69 | 69 | ||