[PATCH] pinctrl: atlas7: clear ugly branch statements for pull and drivestrength
From: Linus Walleij <hidden>
Date: 2015-08-13 12:37:55
Also in:
linux-gpio
From: Linus Walleij <hidden>
Date: 2015-08-13 12:37:55
Also in:
linux-gpio
On Wed, Aug 5, 2015 at 5:22 AM, Barry Song [off-list ref] wrote:
From: Wei Chen <redacted> 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 <redacted> Signed-off-by: Barry Song <redacted>
Patch applied. Yours, Linus Walleij