]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: add regmap_update_bits_base()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 15 Feb 2016 05:22:18 +0000 (05:22 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 19 Feb 2016 16:15:56 +0000 (01:15 +0900)
commitc0875f0c076fdbb64b710c332e44e3d731bc2f6a
tree509bf8ccd4c366c25277b5e8ace26c01d5764f03
parent5367e65a538f2d59834d845f582bc1f1ae9599b8
regmap: add regmap_update_bits_base()

Current regmap has many similar update functions like below,
but the difference is very few.
regmap_update_bits()
regmap_update_bits_async()
regmap_update_bits_check()
regmap_update_bits_check_async()
Furthermore, we can add *force* write option too in the future.

This patch adds new regmap_update_bits_base() which is feature
merged function. Above functions can be merged into it by macro.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c
include/linux/regmap.h