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)
commitd91e8db2c3bbe8ef0e2f3e1a6ff5b31a8d53ef16
tree2bcc299fa62738407b5e25483230f7249f0d016d
parent4c691664583ef6a91f9ed0e08a75fbd30a5ffd5c
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