diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-02-24 12:54:47 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-02-25 23:45:46 +0300 |
commit | bc352686f6801592b4f4a53d8008e80931684c84 (patch) | |
tree | 959b0573e9fea8851d37f19f55de8f38e544203a /block/bounce.c | |
parent | 52fa74ee690e6491295ac221c83c56563257f294 (diff) | |
download | linux-bc352686f6801592b4f4a53d8008e80931684c84.tar.xz |
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>
Diffstat (limited to 'block/bounce.c')
0 files changed, 0 insertions, 0 deletions