Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/msm: make iommu port names const'ier

Signed-off-by: Rob Clark <robdclark@gmail.com>

Rob Clark d72ab599 4103eef9

+6 -4
+4 -2
drivers/gpu/drm/msm/msm_iommu.c
··· 31 31 return 0; 32 32 } 33 33 34 - static int msm_iommu_attach(struct msm_mmu *mmu, const char **names, int cnt) 34 + static int msm_iommu_attach(struct msm_mmu *mmu, const char * const *names, 35 + int cnt) 35 36 { 36 37 struct msm_iommu *iommu = to_msm_iommu(mmu); 37 38 return iommu_attach_device(iommu->domain, mmu->dev); 38 39 } 39 40 40 - static void msm_iommu_detach(struct msm_mmu *mmu, const char **names, int cnt) 41 + static void msm_iommu_detach(struct msm_mmu *mmu, const char * const *names, 42 + int cnt) 41 43 { 42 44 struct msm_iommu *iommu = to_msm_iommu(mmu); 43 45 iommu_detach_device(iommu->domain, mmu->dev);
+2 -2
drivers/gpu/drm/msm/msm_mmu.h
··· 21 21 #include <linux/iommu.h> 22 22 23 23 struct msm_mmu_funcs { 24 - int (*attach)(struct msm_mmu *mmu, const char **names, int cnt); 25 - void (*detach)(struct msm_mmu *mmu, const char **names, int cnt); 24 + int (*attach)(struct msm_mmu *mmu, const char * const *names, int cnt); 25 + void (*detach)(struct msm_mmu *mmu, const char * const *names, int cnt); 26 26 int (*map)(struct msm_mmu *mmu, uint32_t iova, struct sg_table *sgt, 27 27 unsigned len, int prot); 28 28 int (*unmap)(struct msm_mmu *mmu, uint32_t iova, struct sg_table *sgt,