• Nenghua Cao's avatar
    regmap: add regmap_parse_val api · 13ff50c8
    Nenghua Cao authored
        In some cases, we need regmap's format parse_val function
    to do be/le translation according to the bus configuration.
    For example, snd_soc_bytes_put() uses regmap to write/read values,
    and use cpu_to_be() directly to covert MASK into big endian. This
    is a defect, and should use regmap's format function to do it according
    to bus configuration.
    Signed-off-by: default avatarNenghua Cao <nhcao@marvell.com>
    Signed-off-by: default avatarMark Brown <broonie@linaro.org>
    13ff50c8
regmap.c 54.3 KB