]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
pinctrl: documentation update
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Nov 2011 08:27:41 +0000 (09:27 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Nov 2011 07:58:09 +0000 (08:58 +0100)
Update the docs removing an obsolete __refdata tag and document
the mysterious return value of pin_free().

Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/pinctrl.txt
drivers/pinctrl/pinmux.c

index b04cb7d45a1632625a194883587b1300690a200c..ffef9001cdc5d1465ba58c7098fa70e71dbedeb3 100644 (file)
@@ -61,7 +61,7 @@ this in our driver:
 
 #include <linux/pinctrl/pinctrl.h>
 
-const struct pinctrl_pin_desc __refdata foo_pins[] = {
+const struct pinctrl_pin_desc foo_pins[] = {
       PINCTRL_PIN(0, "A1"),
       PINCTRL_PIN(1, "A2"),
       PINCTRL_PIN(2, "A3"),
index 06bee1b733bb28830882db66c16b7c2cbcbc934a..4b35661bdfe9d98173aa066c1adaff509d6ee178 100644 (file)
@@ -178,6 +178,10 @@ out:
  * @pin: the pin to free
  * @gpio_range: the range matching the GPIO pin if this is a request for a
  *     single GPIO pin
+ *
+ * This function returns a pointer to the function name in use. This is used
+ * for callers that dynamically allocate a function name so it can be freed
+ * once the pin is free. This is done for GPIO request functions.
  */
 static const char *pin_free(struct pinctrl_dev *pctldev, int pin,
                            struct pinctrl_gpio_range *gpio_range)