]> git.ipfire.org Git - thirdparty/u-boot.git/commit
sunxi: psci: clean away preprocessor macros
authorSam Edwards <cfsworks@gmail.com>
Thu, 12 Oct 2023 01:47:53 +0000 (19:47 -0600)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 22 Oct 2023 22:41:52 +0000 (23:41 +0100)
commitf9670d7b0b7f2d2205fdf10f11f35e327cd43033
treebd7b4880fb4afb8daf917643a640d5fdf4579a86
parentbeeace9ba1689e6eaba8d286f885a5f0e973b26e
sunxi: psci: clean away preprocessor macros

This patch restructures psci.c to get away from the "many different
function definitions switched by #ifdef" paradigm to the preferred style
of having a single function definition with `if (IS_ENABLED(...))` to
make the optimizer include only the appropriate function bodies instead.

There are no functional changes here.

Signed-off-by: Sam Edwards <CFSworks@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/cpu/armv7/sunxi/psci.c