Repository navigation
aw882xx: support building against Linux 4.19 through 7.x kernels - #16
Merged
Merged
Conversation
The vendored driver only built on the kernel it shipped with. Make the sources compile and load across 4.19 up to the current 7.x Raspberry Pi kernels by guarding each API change with version checks. - aw882xx.c: wrap snd_soc_kcontrol_component() and snd_soc_(un)register_component() in helpers, since they are macros or removed on newer kernels and cannot be used as function pointers - aw882xx.c: accept SND_SOC_DAIFMT_CBC_CFC in place of the removed SND_SOC_DAIFMT_CBS_CFS, and GPIOF_IN in place of GPIOF_DIR_IN - aw882xx.c: open code of_get_named_gpio() with the gpio_device API for 7.1+, and drop the <linux/of_gpio.h> includes that no longer exist - aw882xx.c: use the single-argument i2c probe/remove signatures from 6.3 on and skip the devm_gpio_free() calls that are gone since 6.0 - aw882xx.h: use the string literal form of MODULE_IMPORT_NS() needed by 6.13+ - aw882xx*.c: replace the removed strlcpy() with strscpy() - Makefile: drop the duplicated aw882xx.o entry, apply the commented out aw882xx_calib.o filter, and make KDIR overridable so cross builds work - README.md: document native and cross compilation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The vendored driver only built on the kernel it shipped with. Make the sources compile and load across 4.19 up to the current 7.x Raspberry Pi kernels by guarding each API change with version checks.