diff options
author | 2016-03-23 19:49:41 +0800 | |
---|---|---|
committer | 2016-03-31 15:14:37 +0200 | |
commit | 6e66a6599a813abfc9ebe2e295c9d557c434812a (patch) | |
tree | c91ccdb0443c7e07a3f207eb56cf730da31ca27d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | gpio: zx: make explicitly non-modular (diff) | |
download | linux-dev-6e66a6599a813abfc9ebe2e295c9d557c434812a.tar.xz linux-dev-6e66a6599a813abfc9ebe2e295c9d557c434812a.zip |
gpio: tpic2810: Make sure cached buffer has consistent status with h/w status
i2c_smbus_write_byte_data() can fail. To ensure the
cached buffer has consistent status with h/w status, don't
update the cached gpio->buffer if write fails.
Also refactor the code a bit by adding a tpic2810_set_mask_bits()
helper and use it to simplify the code.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions