--- zzzz-none-000/linux-4.9.218/drivers/gpio/gpiolib.c 2020-04-02 15:20:41.000000000 +0000 +++ seale-7590ax-750/linux-4.9.218/drivers/gpio/gpiolib.c 2023-03-29 10:59:06.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 @@ -2971,6 +2985,7 @@ mutex_unlock(&gpio_lookup_lock); } +EXPORT_SYMBOL_GPL(gpiod_add_lookup_table); /** * gpiod_remove_lookup_table() - unregister GPIO device consumers @@ -2984,6 +2999,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) {