From: Linus Walleij Date: Thu, 10 Nov 2011 08:27:41 +0000 (+0100) Subject: pinctrl: documentation update X-Git-Tag: next-20111118~3^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7bc3243fcf2f7e80991c1957a5b4ee03d44d337d;p=karo-tx-linux.git pinctrl: documentation update Update the docs removing an obsolete __refdata tag and document the mysterious return value of pin_free(). Acked-by: Stephen Warren Signed-off-by: Linus Walleij --- diff --git a/Documentation/pinctrl.txt b/Documentation/pinctrl.txt index b04cb7d45a16..ffef9001cdc5 100644 --- a/Documentation/pinctrl.txt +++ b/Documentation/pinctrl.txt @@ -61,7 +61,7 @@ this in our driver: #include -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"), diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c index 06bee1b733bb..4b35661bdfe9 100644 --- a/drivers/pinctrl/pinmux.c +++ b/drivers/pinctrl/pinmux.c @@ -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)