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)
commita6b0919140b49e0871584362ae0cf1d18c476058
tree9e9052104053a155ab8ca69ccadd581e9f8eede6
parentbf859f84a19f8e562af4a990a287b5e3edabc572
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