From: Mark Brown Date: Tue, 29 Nov 2011 20:10:36 +0000 (+0000) Subject: regmap: Allow regmap_update_bits() users to detect changes X-Git-Tag: v3.3-rc1~163^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=018690d33ecf4aa1eb1415e38c40e2b0b6c7808e;p=pandora-kernel.git 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 --- Reading git-diff-tree failed