[PATCH] pinctrl: atlas7: clear ugly branch statements for pull and drivestrength

Linus Walleij linus.walleij at linaro.org
Thu Aug 13 05:37:54 PDT 2015


On Wed, Aug 5, 2015 at 5:22 AM, Barry Song <21cnbao at gmail.com> wrote:

> From: Wei Chen <Wei.Chen at csr.com>
>
> 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 at csr.com>
> Signed-off-by: Barry Song <Baohua.Song at csr.com>

Patch applied.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list