diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2020-05-23 01:03:16 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2020-05-23 23:38:16 +0300 |
commit | fb212ad6cc58c0fd8c0f76578d4392f71e595bd5 (patch) | |
tree | 9431cd23d79fb997e8e8604a94152b6675702cd9 /drivers/gpu/drm/msm/msm_mmu.h | |
parent | ccac7ce373c1b5175bcf733fe6223129b8975788 (diff) | |
download | linux-fb212ad6cc58c0fd8c0f76578d4392f71e595bd5.tar.xz |
drm/msm: Update the MMU helper function APIs
Instead of using a bare unsigned type for the length value for map/unmap
functions pass in a size_t to more correctly match up with the underlying
APIs.
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_mmu.h')
-rw-r--r-- | drivers/gpu/drm/msm/msm_mmu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/msm_mmu.h b/drivers/gpu/drm/msm/msm_mmu.h index bae9e8e67ec1..3a534ee59bf6 100644 --- a/drivers/gpu/drm/msm/msm_mmu.h +++ b/drivers/gpu/drm/msm/msm_mmu.h @@ -12,8 +12,8 @@ struct msm_mmu_funcs { void (*detach)(struct msm_mmu *mmu); int (*map)(struct msm_mmu *mmu, uint64_t iova, struct sg_table *sgt, - unsigned len, int prot); - int (*unmap)(struct msm_mmu *mmu, uint64_t iova, unsigned len); + size_t len, int prot); + int (*unmap)(struct msm_mmu *mmu, uint64_t iova, size_t len); void (*destroy)(struct msm_mmu *mmu); }; |