gpiolib: unexport gpiochip_get_desc()
PATCH 1/1 gpiolib: unexport gpiochip_get_desc()
From: Bartosz Golaszewski <[email protected]>
This function has been deprecated for some time and is now only used within the GPIOLIB core. Remove it from the public header and unexport it as all current users are linked against the compilation unit where it is defined.
Signed-off-by Bartosz Golaszewski <[email protected]>
--- drivers/gpio/gpiolib.c | 1 - drivers/gpio/gpiolib.h | 1 + include/linux/gpio/driver.h | 1 - 3 files changed, 1 insertion(+), 2 deletions(-)
drivers/gpio/gpiolib.c +0 -1
@@ -179,7 +179,6 @@ struct gpio_desc *gpiochip_get_desc(struct gpio_chip *gc, {return gpio_device_get_desc (gc->gpiodev, hwnum); } -EXPORT_SYMBOL_GPL (gpiochip_get_desc);/** * gpio_device_get_desc() - get the GPIO descriptor corresponding to the given
drivers/gpio/gpiolib.h +1 -0
@@ -243,6 +243,7 @@ int gpio_set_debounce_timeout(struct gpio_desc *desc, unsigned int debounce);int gpiod_hog (struct gpio_desc *desc,const char *name,unsigned long lflags,enum gpiod_flags dflags);int gpiochip_get_ngpios (struct gpio_chip *gc,struct device *dev); +struct gpio_desc *gpiochip_get_desc (struct gpio_chip *gc,unsigned int hwnum);const char *gpiod_get_label (struct gpio_desc *desc);/*
include/linux/gpio/driver.h +0 -1
@@ -787,7 +787,6 @@ struct gpio_desc *gpiochip_request_own_desc(struct gpio_chip *gc, enum gpiod_flags dflags);void gpiochip_free_own_desc (struct gpio_desc *desc); -struct gpio_desc *gpiochip_get_desc (struct gpio_chip *gc,unsigned int hwnum);struct gpio_desc *gpio_device_get_desc (struct gpio_device *gdev,unsigned int hwnum);
Signature · 1 line
2.43.0
Bartosz Golaszewski
AppliedFrom: Bartosz Golaszewski <[email protected]>
Quoted 6 lines · Bartosz Golaszewski
This function has been deprecated for some time and is now only used within the GPIOLIB core. Remove it from the public header and unexport it as all current users are linked against the compilation unit where it is defined.
Applied, thanks!
[1/1] gpiolib: unexport gpiochip_get_desc()
commit: 6f2a875024993449f1b19a144d3e4391411a1b51
Best regards,
Signature · 1 line
Bartosz Golaszewski <[email protected]>