]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: merge regmap_update_bits() into macro
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 15 Feb 2016 05:22:42 +0000 (05:22 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 19 Feb 2016 16:15:56 +0000 (01:15 +0900)
commit260a63363268d12594f92fa3c043eeb272c47e1c
treef955c358eaeec7bf4556524cb744ea16f81430b4
parent36f52440247040feb8551ee2efed14108c8979d3
regmap: merge regmap_update_bits() into macro

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 merges regmap_update_bits() into macro
by using regmap_update_bits_base().

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