]> git.baikalelectronics.ru Git - kernel.git/commit
soc: fsl: qe: store muram_vbase as a void pointer instead of u8
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Tue, 19 Jan 2021 15:07:48 +0000 (16:07 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 Jan 2021 20:19:55 +0000 (12:19 -0800)
commite1e36a580988645730629227d9ab9218f305a2d2
tree5d82c5a9d6d77083035bb538f75ea5c87fec9a42
parent8e16f63966d8066d4aeadfd056da23f9d5ed39a7
soc: fsl: qe: store muram_vbase as a void pointer instead of u8

The two functions cpm_muram_offset() and cpm_muram_dma() both need a
cast currently, one casts muram_vbase to do the pointer arithmetic on
void pointers, the other casts the passed-in address u8*.

It's simpler and more consistent to just always use void* and drop all
the casting.

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>
drivers/soc/fsl/qe/qe_common.c