aboutsummaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2010-03-23 11:32:54 +0530
committerJohn Rigby <john.rigby@linaro.org>2010-09-02 22:44:45 -0600
commitfec7f54996849ec74e5c57c6647883d54bea7d5a (patch)
tree25138a22b6deea8233c2b2f8ea7fd6b35ae9bf5f /arch/arm
parenta9eb0070113b74bf0332180a1c255bc9ae53d8a9 (diff)
nomadik-gpio: add kerneldoc comments for exported funcs
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/plat-nomadik/gpio.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/arch/arm/plat-nomadik/gpio.c b/arch/arm/plat-nomadik/gpio.c
index 6f7363ccdff..1a75e2eef55 100644
--- a/arch/arm/plat-nomadik/gpio.c
+++ b/arch/arm/plat-nomadik/gpio.c
@@ -91,7 +91,15 @@ int nmk_gpio_set_pull(int gpio, int gpio_pull)
}
EXPORT_SYMBOL(nmk_gpio_set_pull);
-/* Mode functions */
+/**
+ * nmk_gpio_set_mode() - set the mux mode of a gpio pin
+ * @gpio: pin number
+ * @gpio_mode: one of NMK_GPIO_ALT_GPIO, NMK_GPIO_ALT_A,
+ * NMK_GPIO_ALT_B, and NMK_GPIO_ALT_C
+ *
+ * Sets the mode of the specified pin to one of the alternate functions or
+ * plain GPIO.
+ */
int nmk_gpio_set_mode(int gpio, int gpio_mode)
{
struct nmk_gpio_chip *nmk_chip;
@@ -119,6 +127,13 @@ int nmk_gpio_set_mode(int gpio, int gpio_mode)
}
EXPORT_SYMBOL(nmk_gpio_set_mode);
+/**
+ * nmk_gpio_get_mode() - get the mux mode of a gpio pin
+ * @gpio: pin number
+ *
+ * Returns the mode of the specified pin. One of NMK_GPIO_ALT_GPIO,
+ * NMK_GPIO_ALT_A, NMK_GPIO_ALT_B, and NMK_GPIO_ALT_C.
+ */
int nmk_gpio_get_mode(int gpio)
{
struct nmk_gpio_chip *nmk_chip;