]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit31c7688a7ae7e05758e97b148939ef7002452647
treec06066bc1aca0945732664493c7464fa42057cb1
parent80af318122ca0f2d71dfac8353e05b3f1f197f94
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