Closed mskalski closed 1 year ago
For pre-6 Linux kernel use definitions of devm_i2c_add_adapter() introduced in 5.13 Linux kernel - copied verbatim
devm_i2c_add_adapter()
Also macros for GPIOCHIP_IRQ_RESOURCE_HELPERS and gpio_irq_chip_set_chip() and IRQCHIP_IMMUTABLE which were introduced in 5.19 kernel are defined
GPIOCHIP_IRQ_RESOURCE_HELPERS
gpio_irq_chip_set_chip()
IRQCHIP_IMMUTABLE
Succesfully compiles (and works) on 5.4 kernel (Ubuntu 18.04)
Sounds raisonnable. Thanks.
For pre-6 Linux kernel use definitions of
devm_i2c_add_adapter()
introduced in 5.13 Linux kernel - copied verbatimAlso macros for
GPIOCHIP_IRQ_RESOURCE_HELPERS
andgpio_irq_chip_set_chip()
andIRQCHIP_IMMUTABLE
which were introduced in 5.19 kernel are defined