diff options
author | 2016-09-09 11:17:36 +0200 | |
---|---|---|
committer | 2016-09-12 14:46:54 +0200 | |
commit | c6e3cf01d31d88d35a8fbf8bf4773b737fa48f21 (patch) | |
tree | fd9cfc12d752f33b2563fbcce7f84a61b97f5007 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | gpio: pca953x: refactor pca953x_write_regs() (diff) | |
download | wireguard-linux-c6e3cf01d31d88d35a8fbf8bf4773b737fa48f21.tar.xz wireguard-linux-c6e3cf01d31d88d35a8fbf8bf4773b737fa48f21.zip |
gpio: pca953x: refactor pca953x_read_regs()
Avoid the unnecessary if-else in pca953x_read_regs() by spltting the
routine into smaller, specialized functions and calling the right one
via a function pointer held in struct pca953x.
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