• Richard Fitzgerald's avatar
    ASoC: arizona: Make logging of FLL calculations clearer · 2595b7fe
    Richard Fitzgerald authored
    The debug logging of FLL calculations was confusing. Values were
    printed in hex without indicating this by a leading 0x, and
    despite these normally being required in decimal. Also where the
    register value isn't the actual value (it s a power-of-two or
    0 means 1, 1 means 2, ...)  it was unclear whether the actual or
    register value was shown.
    
    This patch changes the log print so that all mathematical values
    are shown in decimal, all register values are shown in hex with a
    0x prefix, and where the register value isn't the actual integer
    value the decimal integer value is shown in () after the hex
    register value.
    Signed-off-by: default avatarRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    2595b7fe
arizona.c 61.1 KB