regmap: add regmap_update_bits_lazy
authorColin Patrick McCabe <cmccabe@nvidia.com>
Thu, 20 Oct 2011 21:44:17 +0000 (14:44 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 24 Mar 2012 01:52:46 +0000 (18:52 -0700)
commit7b5e210ee1543c80a53a8c66f14b1a33612e07e3
treea30bc28646ccd98087591f550d9f8cec9454b1aa
parent04bf66318e03906fe866f6742fb806c816d8f37d
regmap: add regmap_update_bits_lazy

Add regmap_update_bits_lazy. Like regmap_update_bits, this performs a
read-modify-write cycle on a regmap register, but it skips the write if
nothing has changed.

Change-Id: Id075f711770a6bf15dea9ae085593fef268491ac
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Reviewed-on: http://git-master/r/59460
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R93e1c3cf4a506cb17346f4e981a60350846a856e
drivers/base/regmap/regmap.c
include/linux/regmap.h