]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/base/regmap/regmap.c
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)
commit91d31b9f8e7662726f273fc32b25f4099d78de4a
tree509bf8ccd4c366c25277b5e8ace26c01d5764f03
parent92e963f50fc74041b5e9e744c330dca48e04f08d
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