OSDN Git Service

gpio: davinci: Use dev name for label and automatic base selection
authorAndrew F. Davis <afd@ti.com>
Fri, 31 Aug 2018 19:13:23 +0000 (14:13 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 20 Sep 2018 15:36:05 +0000 (08:36 -0700)
commit587f7a694f016b65f8de8ea8b5fb0402712b5475
treec06066bc1aca0945732664493c7464fa42057cb1
parent329357723f5e8e2d7fc3144fb79936b51ce63b76
gpio: davinci: Use dev name for label and automatic base selection

Use dev_name to get a unique label and use -1 for a base to get our
selection automatically. We pull in all GPIOs per chip now so this
does not have the effect of out of order labels like before.

We do these both together so we can drop all the static data in one
patch. This also lets us normalize the return paths as we don't need
any cleanup after this change.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Tested-by: Keerthy <j-keerthy@ti.com>
Acked-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-davinci.c