]> git.baikalelectronics.ru Git - kernel.git/commit
soc: fsl: qe: add cpm_muram_free_addr() helper
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Tue, 19 Jan 2021 15:07:49 +0000 (16:07 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 Jan 2021 20:19:55 +0000 (12:19 -0800)
commit73ed0b2003aea3c2ab3a6bb83be207bfa1a9b229
treec6673b060639f8c744b0d20df0d32c045b037bbf
parent1434a0ab111d77e4dfa2820a4a1566f143e6009b
soc: fsl: qe: add cpm_muram_free_addr() helper

Add a helper that takes a virtual address rather than the muram
offset. This will be used in a couple of places to avoid having to
store both the offset and the virtual address, as well as removing
NULL checks from the callers.

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
include/soc/fsl/qe/qe.h