Skip to content

Commit 6f2a875

Browse files
author
Bartosz Golaszewski
committed
gpiolib: unexport gpiochip_get_desc()
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. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 7828b7b commit 6f2a875

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

drivers/gpio/gpiolib.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ struct gpio_desc *gpiochip_get_desc(struct gpio_chip *gc,
179179
{
180180
return gpio_device_get_desc(gc->gpiodev, hwnum);
181181
}
182-
EXPORT_SYMBOL_GPL(gpiochip_get_desc);
183182

184183
/**
185184
* gpio_device_get_desc() - get the GPIO descriptor corresponding to the given

drivers/gpio/gpiolib.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ int gpio_set_debounce_timeout(struct gpio_desc *desc, unsigned int debounce);
243243
int gpiod_hog(struct gpio_desc *desc, const char *name,
244244
unsigned long lflags, enum gpiod_flags dflags);
245245
int gpiochip_get_ngpios(struct gpio_chip *gc, struct device *dev);
246+
struct gpio_desc *gpiochip_get_desc(struct gpio_chip *gc, unsigned int hwnum);
246247
const char *gpiod_get_label(struct gpio_desc *desc);
247248

248249
/*

include/linux/gpio/driver.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,6 @@ struct gpio_desc *gpiochip_request_own_desc(struct gpio_chip *gc,
787787
enum gpiod_flags dflags);
788788
void gpiochip_free_own_desc(struct gpio_desc *desc);
789789

790-
struct gpio_desc *gpiochip_get_desc(struct gpio_chip *gc, unsigned int hwnum);
791790
struct gpio_desc *
792791
gpio_device_get_desc(struct gpio_device *gdev, unsigned int hwnum);
793792

0 commit comments

Comments
 (0)