commit | 13ff50c85846338bb9820abd3933227b678dc086 | [log] [tgz] |
---|---|---|
author | Nenghua Cao <nhcao@marvell.com> | Wed Feb 19 18:44:13 2014 +0800 |
committer | Mark Brown <broonie@linaro.org> | Thu Mar 06 17:40:54 2014 +0800 |
tree | e4efb4701572fc0ada5b0e9d8501115e47329d15 | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 [diff] |
regmap: add regmap_parse_val api 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: Nenghua Cao <nhcao@marvell.com> Signed-off-by: Mark Brown <broonie@linaro.org>