]> 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)
commit949cd4d4440a45280d3cf70797736b4e069fa769
treec06066bc1aca0945732664493c7464fa42057cb1
parent1d5819c1f5210ae3468887783821e0f73d1f1eaa
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