]> git.baikalelectronics.ru Git - kernel.git/commit
of/gpio: Add new method for getting gpios under different property names
authorJohn Bonesio <bones@secretlab.ca>
Mon, 27 Jun 2011 23:49:57 +0000 (16:49 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 28 Jun 2011 21:39:50 +0000 (15:39 -0600)
commit4502524f47213a9f91098bff796efdf51631a783
tree9e9052104053a155ab8ca69ccadd581e9f8eede6
parent0a1e5f01b5ab54f8324039e020fdc4a52b0c6dcf
of/gpio: Add new method for getting gpios under different property names

This patch adds a new routine, of_get_named_gpio_flags(), which takes the
property name as a parameter rather than assuming "gpios".

of_get_gpio_flags() is modified to call of_get_named_gpio_flags() with "gpios"
as the property parameter.

Signed-off-by: John Bonesio <bones@secretlab.ca>
[grant.likely: Tidied up whitespace and tweaked kerneldoc comments.]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/of/gpio.c
include/linux/of_gpio.h