--- zzzz-none-000/linux-5.4.213/include/linux/gpio/driver.h 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/include/linux/gpio/driver.h 2024-08-14 09:02:08.000000000 +0000 @@ -372,6 +372,13 @@ void (*dbg_show)(struct seq_file *s, struct gpio_chip *chip); +#ifdef CONFIG_GPIOLIB_AVM_EXTENSION + int (*set_function)(struct gpio_chip *chip, + unsigned int offset, unsigned int function); + int (*get_function)(struct gpio_chip *chip, + unsigned int offset); +#endif + int (*init_valid_mask)(struct gpio_chip *chip, unsigned long *valid_mask, unsigned int ngpios); @@ -500,7 +507,9 @@ extern void gpiochip_remove(struct gpio_chip *chip); extern int devm_gpiochip_add_data(struct device *dev, struct gpio_chip *chip, void *data); - +#ifdef CONFIG_GPIOLIB_AVM_EXTENSION +extern struct gpio_chip *gpiochip_avm_find_by_name(const char *name); +#endif extern struct gpio_chip *gpiochip_find(void *data, int (*match)(struct gpio_chip *chip, void *data));