From: Krzysztof Kozlowski Date: Tue, 24 Feb 2015 09:54:47 +0000 (+0100) Subject: power_supply: max17042: Use regmap_update_bits instead read and write X-Git-Tag: omap-for-v4.1/fixes-rc1~174^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc352686f6801592b4f4a53d8008e80931684c84;p=pandora-kernel.git power_supply: max17042: Use regmap_update_bits instead read and write Consolidate regmap_read() and regmap_write() into one regmap_update_bits() call. This is more readable and safer because regmap's mutex will prevent any concurrent access to modified registers (the concurrent access could happen through max17042_init_chip() in scheduled work). Signed-off-by: Krzysztof Kozlowski Signed-off-by: Sebastian Reichel --- Reading git-diff-tree failed