summaryrefslogtreecommitdiff
path: root/block/elevator.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2015-02-24 12:54:47 +0300
committerSebastian Reichel <sre@kernel.org>2015-02-25 23:45:46 +0300
commitbc352686f6801592b4f4a53d8008e80931684c84 (patch)
tree959b0573e9fea8851d37f19f55de8f38e544203a /block/elevator.c
parent52fa74ee690e6491295ac221c83c56563257f294 (diff)
downloadlinux-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/elevator.c')
0 files changed, 0 insertions, 0 deletions