]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Suppress noop writes in regmap_update_bits()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 18 Nov 2011 16:03:50 +0000 (16:03 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 20 Nov 2011 20:56:38 +0000 (20:56 +0000)
commitdbcf741cb8ac258a2169e57358238b18ccffdb4f
tree2bcc299fa62738407b5e25483230f7249f0d016d
parenta3829196a3e208e62c192735c5a57d7b576f7af5
regmap: Suppress noop writes in regmap_update_bits()

If the new register value is identical to the original one then suppress
the write to the hardware in regmap_update_bits(), saving some I/O cost.

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