]> 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)
commit1434a0ab111d77e4dfa2820a4a1566f143e6009b
tree5d82c5a9d6d77083035bb538f75ea5c87fec9a42
parent425369b96aeaacb07df317b7b84e2c5ab07828ab
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