--- zzzz-none-000/linux-4.9.276/drivers/gpio/gpiolib.c 2021-07-20 14:21:16.000000000 +0000 +++ falcon-5530-750/linux-4.9.276/drivers/gpio/gpiolib.c 2023-04-05 08:19:01.000000000 +0000 @@ -122,6 +122,7 @@ return &gdev->descs[hwnum]; } +EXPORT_SYMBOL_GPL(gpiochip_get_desc); /** * Convert a GPIO descriptor to the integer namespace. @@ -171,6 +172,19 @@ } } +void __iomem *gpiod_avm_get_inputreg_and_bit(struct gpio_desc *desc, int *bit) +{ + struct gpio_chip *chip; + + chip = gpiod_to_chip(desc); + + if (!chip->avm_get_inputreg_and_bit) + return NULL; + + return chip->avm_get_inputreg_and_bit(chip, gpio_chip_hwgpio(desc), bit); +} +EXPORT_SYMBOL_GPL(gpiod_avm_get_inputreg_and_bit); + /** * gpiod_get_direction - return the current direction of a GPIO * @desc: GPIO to get the direction of @@ -2954,6 +2968,7 @@ mutex_unlock(&gpio_lookup_lock); } +EXPORT_SYMBOL_GPL(gpiod_add_lookup_table); /** * gpiod_remove_lookup_table() - unregister GPIO device consumers @@ -2967,6 +2982,7 @@ mutex_unlock(&gpio_lookup_lock); } +EXPORT_SYMBOL_GPL(gpiod_remove_lookup_table); static struct gpiod_lookup_table *gpiod_find_lookup_table(struct device *dev) {