aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinmux.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2011-11-10 03:27:41 -0500
committerLinus Walleij <linus.walleij@linaro.org>2012-01-03 03:10:00 -0500
commit336cdba09a5df706402628fb20b7660d186aff6c (patch)
tree11b37bcab80437edf7d7941886dea964c1e58de7 /drivers/pinctrl/pinmux.c
parent3712a3c488987849613a4ad74129e67e40b12b38 (diff)
pinctrl: documentation update
Update the docs removing an obsolete __refdata tag and document the mysterious return value of pin_free(). And fixes up some various confusions in the pinctrl documentation. Reported-by: Rajendra Nayak <rnayak@ti.com> Reported-by: Randy Dunlap <rdunlap@xenotime.net> Reported-by: Thomas Abraham <thomas.abraham@linaro.org> Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinmux.c')
-rw-r--r--drivers/pinctrl/pinmux.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c
index c77aee5508fb..ee3aba78c3dd 100644
--- a/drivers/pinctrl/pinmux.c
+++ b/drivers/pinctrl/pinmux.c
@@ -174,6 +174,10 @@ out:
174 * @pin: the pin to free 174 * @pin: the pin to free
175 * @gpio_range: the range matching the GPIO pin if this is a request for a 175 * @gpio_range: the range matching the GPIO pin if this is a request for a
176 * single GPIO pin 176 * single GPIO pin
177 *
178 * This function returns a pointer to the function name in use. This is used
179 * for callers that dynamically allocate a function name so it can be freed
180 * once the pin is free. This is done for GPIO request functions.
177 */ 181 */
178static const char *pin_free(struct pinctrl_dev *pctldev, int pin, 182static const char *pin_free(struct pinctrl_dev *pctldev, int pin,
179 struct pinctrl_gpio_range *gpio_range) 183 struct pinctrl_gpio_range *gpio_range)
@@ -919,7 +923,7 @@ int pinmux_hog_maps(struct pinctrl_dev *pctldev)
919} 923}
920 924
921/** 925/**
922 * pinmux_hog_maps() - unhog specific map entries on controller device 926 * pinmux_unhog_maps() - unhog specific map entries on controller device
923 * @pctldev: the pin control device to unhog entries on 927 * @pctldev: the pin control device to unhog entries on
924 */ 928 */
925void pinmux_unhog_maps(struct pinctrl_dev *pctldev) 929void pinmux_unhog_maps(struct pinctrl_dev *pctldev)