diff options
author | 2016-09-09 11:17:35 +0200 | |
---|---|---|
committer | 2016-09-12 14:46:29 +0200 | |
commit | 7acc66e3711b004496c85a64534b2b8aabef8df3 (patch) | |
tree | 58e85f1f1287cb7c5066012dd26b54d5f6dfa318 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | gpio: pca953x: code shrink (diff) | |
download | wireguard-linux-7acc66e3711b004496c85a64534b2b8aabef8df3.tar.xz wireguard-linux-7acc66e3711b004496c85a64534b2b8aabef8df3.zip |
gpio: pca953x: refactor pca953x_write_regs()
Avoid the unnecessary if-else in pca953x_write_regs() by splitting
the routine into smaller, specialized functions and calling the right
one via a function pointer held in struct pca953x_chip.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.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