diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-02-24 10:54:47 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-02-25 21:45:46 +0100 |
commit | bc352686f6801592b4f4a53d8008e80931684c84 (patch) | |
tree | 959b0573e9fea8851d37f19f55de8f38e544203a /tools/perf/scripts/python/export-to-postgresql.py | |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions