diff options
| author | Bartosz Golaszewski <[email protected]> | 2024-01-04 18:20:34 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2024-01-22 08:43:33 +0000 |
| commit | f4028860a998f8a64c4e8c162a8091f7214502cf (patch) | |
| tree | 0e6dad8a9bdab6e80d775deedcd3efcc8944b97b /drivers/gpio/gpiolib-of.c | |
| parent | Linux 6.8-rc1 (diff) | |
| download | kernel-f4028860a998f8a64c4e8c162a8091f7214502cf.tar.gz kernel-f4028860a998f8a64c4e8c162a8091f7214502cf.zip | |
gpio: legacy: mark old interfaces as deprecated in kernel docs
We've recently had someone try to use of_get_named_gpio() in new code.
Mark legacy interfaces as deprecated in kernel docs to avoid any
confusion.
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpio/gpiolib-of.c')
| -rw-r--r-- | drivers/gpio/gpiolib-of.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index e7770eedd146..77509aa19900 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -414,6 +414,8 @@ out: * @propname: Name of property containing gpio specifier(s) * @index: index of the GPIO * + * **DEPRECATED** This function is deprecated and must not be used in new code. + * * Returns GPIO number to use with Linux generic GPIO API, or one of the errno * value on the error condition. */ |
