commit | bc352686f6801592b4f4a53d8008e80931684c84 | [log] [tgz] |
---|---|---|
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | Tue Feb 24 10:54:47 2015 +0100 |
committer | Sebastian Reichel <sre@kernel.org> | Wed Feb 25 21:45:46 2015 +0100 |
tree | 959b0573e9fea8851d37f19f55de8f38e544203a | |
parent | 52fa74ee690e6491295ac221c83c56563257f294 [diff] |
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 <k.kozlowski@samsung.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>