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)
committerLokesh Pathak <lpathak@nvidia.com>
Mon, 5 Mar 2012 15:53:44 +0000 (07:53 -0800)
commit536869bd1abcaddf053e4f89ab1027a510b725fb
treec3a3db4794781b3730396ef44c319115076f9641
parent532545df7bab481d517619c474f42d28f8129e08
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>
(cherry picked from commit d91e8db2c3bbe8ef0e2f3e1a6ff5b31a8d53ef16)

Change-Id: Ia6c6e291371e6937b893501e763b7e589f700d93
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/87566
drivers/base/regmap/regmap.c