aboutsummaryrefslogtreecommitdiff
path: root/include/dm/pinctrl.h
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-07-25 13:56:11 +0200
committerStefan Roese <sr@denx.de>2022-07-28 15:17:45 +0200
commita1de1035b228f634241c80c60fcb39daae6116f9 (patch)
tree0b076c4368a8cdaeca6b14b5a049241ec2f4fd2e /include/dm/pinctrl.h
parent319b62880cd21c0187081ef5c6b27d888bcbbbe7 (diff)
downloadu-boot-a1de1035b228f634241c80c60fcb39daae6116f9.zip
u-boot-a1de1035b228f634241c80c60fcb39daae6116f9.tar.gz
u-boot-a1de1035b228f634241c80c60fcb39daae6116f9.tar.bz2
pinctrl: Add third argument label for pinctrl_gpio_request() function
This change allows to use pinctrl_gpio_request() function as a direct pointer for dm_gpio_ops's .request callback. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/dm/pinctrl.h')
-rw-r--r--include/dm/pinctrl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/dm/pinctrl.h b/include/dm/pinctrl.h
index 5436dc4..e3e50afe 100644
--- a/include/dm/pinctrl.h
+++ b/include/dm/pinctrl.h
@@ -611,10 +611,11 @@ int pinctrl_get_pin_name(struct udevice *dev, int selector, char *buf,
* pinctrl_gpio_request() - Request a single pin to be used as GPIO
* @dev: GPIO peripheral device
* @offset: GPIO pin offset from the GPIO controller
+ * @label: GPIO label
*
* Return: 0 on success, or negative error code on failure
*/
-int pinctrl_gpio_request(struct udevice *dev, unsigned offset);
+int pinctrl_gpio_request(struct udevice *dev, unsigned offset, const char *label);
/**
* pinctrl_gpio_free() - Free a single pin used as GPIO