diff options
author | Wei Chen <Wei.Chen@csr.com> | 2015-08-05 03:22:14 +0000 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-08-13 14:37:21 +0200 |
commit | 627b1516a390e19fb26b1c0c9bd2546722524965 (patch) | |
tree | fe510df1500b4a0edd7fff542c1ec37f58378128 /lib/decompress_bunzip2.c | |
parent | 39ce8150a079e3ae6ed9abf26d7918a558ef7c19 (diff) | |
download | linux-627b1516a390e19fb26b1c0c9bd2546722524965.tar.gz linux-627b1516a390e19fb26b1c0c9bd2546722524965.tar.bz2 linux-627b1516a390e19fb26b1c0c9bd2546722524965.zip |
pinctrl: atlas7: clear ugly branch statements for pull and drivestrength
To set/get atlas7 pull & drive strength, we use lots of if/else
to check pad type. But except mask value or immediate value, all
actions in these conditional branches are the same.
So we use predefined pull info table and drive strength table
to reduce these redundancy code.
Signed-off-by: Wei Chen <Wei.Chen@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'lib/decompress_bunzip2.c')
0 files changed, 0 insertions, 0 deletions