Message ID | 20200225093102.10964-1-m.felsch@pengutronix.de |
---|---|
State | New |
Headers | show |
Series | gpiolib: export gpiochip_get_desc | expand |
On Tue, Feb 25, 2020 at 10:31 AM Marco Felsch <m.felsch@pengutronix.de> wrote: > The function was currently used internal by the gpiolib. Since commit > 56cc3af4e8c8 ("pinctrl: da9062: add driver support") it is also used by > drivers so we need to export the symbol. > > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> OK seems like the best solution right now. Patch applied! Yours, Linus Walleij
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 753283486037..1dbd0e6d240b 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -149,6 +149,7 @@ struct gpio_desc *gpiochip_get_desc(struct gpio_chip *chip, return &gdev->descs[hwnum]; } +EXPORT_SYMBOL_GPL(gpiochip_get_desc); /** * desc_to_gpio - convert a GPIO descriptor to the integer namespace
The function was currently used internal by the gpiolib. Since commit 56cc3af4e8c8 ("pinctrl: da9062: add driver support") it is also used by drivers so we need to export the symbol. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> --- Hi, This commit needs to be applied to address the build failure reported by Stephen [1]. [1] https://lkml.org/lkml/2020/2/24/1446 drivers/gpio/gpiolib.c | 1 + 1 file changed, 1 insertion(+)