diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2021-01-19 16:07:47 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-21 21:19:55 +0100 |
commit | e8e507a8ac90d48053dfdea9d4855495b0204956 (patch) | |
tree | 2aeb007f39a50841a224ffc2235e54f1cdbe6890 /include/soc/fsl | |
parent | ethernet: ucc_geth: remove unused read of temoder field (diff) | |
download | linux-e8e507a8ac90d48053dfdea9d4855495b0204956.tar.xz linux-e8e507a8ac90d48053dfdea9d4855495b0204956.zip |
soc: fsl: qe: make cpm_muram_offset take a const void* argument
Allow passing const-qualified pointers without requiring a cast in the
caller.
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Acked-by: Li Yang <leoyang.li@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/soc/fsl')
-rw-r--r-- | include/soc/fsl/qe/qe.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/soc/fsl/qe/qe.h b/include/soc/fsl/qe/qe.h index 3feddfec9f87..8ee3747433c0 100644 --- a/include/soc/fsl/qe/qe.h +++ b/include/soc/fsl/qe/qe.h @@ -102,7 +102,7 @@ s32 cpm_muram_alloc(unsigned long size, unsigned long align); void cpm_muram_free(s32 offset); s32 cpm_muram_alloc_fixed(unsigned long offset, unsigned long size); void __iomem *cpm_muram_addr(unsigned long offset); -unsigned long cpm_muram_offset(void __iomem *addr); +unsigned long cpm_muram_offset(const void __iomem *addr); dma_addr_t cpm_muram_dma(void __iomem *addr); #else static inline s32 cpm_muram_alloc(unsigned long size, @@ -126,7 +126,7 @@ static inline void __iomem *cpm_muram_addr(unsigned long offset) return NULL; } -static inline unsigned long cpm_muram_offset(void __iomem *addr) +static inline unsigned long cpm_muram_offset(const void __iomem *addr) { return -ENOSYS; } |