]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: add regmap_parse_val api
authorNenghua Cao <nhcao@marvell.com>
Wed, 19 Feb 2014 10:44:13 +0000 (18:44 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 6 Mar 2014 09:40:54 +0000 (17:40 +0800)
commite1adb3b017cc3da1e594d5329d744fce087e6ea4
treee4efb4701572fc0ada5b0e9d8501115e47329d15
parented4c0e42e851d5178cd0d1dc05de408325576e1c
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>
drivers/base/regmap/regmap.c
include/linux/regmap.h