]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Allow regmap_update_bits() users to detect changes
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 29 Nov 2011 20:10:36 +0000 (20:10 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 29 Nov 2011 20:15:50 +0000 (20:15 +0000)
commitaf6826599ad7d20babd55e5ec42aca552ee803b9
tree3ae08fb9d199813840564fb392ebc9b4a5d8c230
parent991f591e7316d36ee115c34d1625a5c67752bf16
regmap: Allow regmap_update_bits() users to detect changes

Some users of regmap_update_bits() would like to be able to tell their
users if they actually did an update so provide a variant which also
returns a flag indicating if an update took place. We could return a
tristate in the return value of regmap_update_bits() but this makes the
API more cumbersome to use and doesn't fit with the general zero for
success idiom we have.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap.c
include/linux/regmap.h