diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2020-10-05 16:15:46 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-10-05 18:18:36 +0300 |
commit | c845f21ad86528f888db27849f2d315e08126816 (patch) | |
tree | 4203079842ea41ea2bfd2644947e902b8794b283 /drivers/regulator/qcom_smd-regulator.c | |
parent | 0b5a21870694ab4c75a783f77b158840908f04a1 (diff) | |
download | linux-c845f21ad86528f888db27849f2d315e08126816.tar.xz |
regulator: Make constraint debug processing conditional on DEBUG
If debugging is disabled, print_constraints() does not print the actual
constraints, but still performs some processing and string formatting,
only to throw away the result later.
Fix this by moving all constraint debug processing to a separate
function, and replacing it by a dummy when debugging is disabled.
This reduces kernel size by almost 800 bytes (on arm/arm64).
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20201005131546.22448-1-geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/qcom_smd-regulator.c')
0 files changed, 0 insertions, 0 deletions