diff options
author | Mike Pagano <mpagano@gentoo.org> | 2024-02-22 08:38:33 -0500 |
---|---|---|
committer | Mike Pagano <mpagano@gentoo.org> | 2024-02-22 08:38:33 -0500 |
commit | 8b1aa79bdb025188987407e34065efdeba91023f (patch) | |
tree | f189ea7b941bee2a64b3c7a300dc00c58e8dd7e3 | |
parent | Removed redundant patch (diff) | |
download | linux-patches-8b1aa79bdb025188987407e34065efdeba91023f.tar.gz linux-patches-8b1aa79bdb025188987407e34065efdeba91023f.tar.bz2 linux-patches-8b1aa79bdb025188987407e34065efdeba91023f.zip |
ASoC: max98388: Correct the includes
Bug: https://bugs.gentoo.org/925256
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
-rw-r--r-- | 0000_README | 4 | ||||
-rw-r--r-- | 2700_ASoC_max98388_correct_includes.patch | 39 |
2 files changed, 43 insertions, 0 deletions
diff --git a/0000_README b/0000_README index 781f1dae..5bd93d3c 100644 --- a/0000_README +++ b/0000_README @@ -127,6 +127,10 @@ Patch: 2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch From: https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-marcel@holtmann.org/raw Desc: Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. See bug #686758 +Patch: 2700_ASoC_max98388_correct_includes.patch +From: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/sound/soc/codecs/max98388.c?id=832beb640e425b5d1a92d8c2002e6b8e0af693eb +Desc: ASoC: max98388: Correct the includes + Patch: 2800_amdgpu-Adj-kmalloc-array-calls-for-new-Walloc-size.patch From: sam@gentoo.org Desc: amdgpu: Adjust kmalloc_array calls for new -Walloc-size diff --git a/2700_ASoC_max98388_correct_includes.patch b/2700_ASoC_max98388_correct_includes.patch new file mode 100644 index 00000000..c24d6bed --- /dev/null +++ b/2700_ASoC_max98388_correct_includes.patch @@ -0,0 +1,39 @@ +From 832beb640e425b5d1a92d8c2002e6b8e0af693eb Mon Sep 17 00:00:00 2001 +From: Linus Walleij <linus.walleij@linaro.org> +Date: Mon, 11 Sep 2023 10:23:51 +0200 +Subject: ASoC: max98388: Correct the includes + +The MAX98388 driver is using the modern GPIO descriptor API +but uses legacy includes. Include the proper <linux/consumer.h> +header instead. + +Signed-off-by: Linus Walleij <linus.walleij@linaro.org> +Link: https://lore.kernel.org/r/20230911-descriptors-asoc-max-v2-4-b9d793fb768e@linaro.org +Signed-off-by: Mark Brown <broonie@kernel.org> +--- + sound/soc/codecs/max98388.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +(limited to 'sound/soc/codecs/max98388.c') + +diff --git a/sound/soc/codecs/max98388.c b/sound/soc/codecs/max98388.c +index cde5e85946cb88..078adec29312d0 100644 +--- a/sound/soc/codecs/max98388.c ++++ b/sound/soc/codecs/max98388.c +@@ -3,12 +3,11 @@ + + #include <linux/acpi.h> + #include <linux/delay.h> +-#include <linux/gpio.h> ++#include <linux/gpio/consumer.h> + #include <linux/i2c.h> + #include <linux/module.h> + #include <linux/mod_devicetable.h> + #include <linux/of.h> +-#include <linux/of_gpio.h> + #include <linux/pm_runtime.h> + #include <linux/regmap.h> + #include <linux/slab.h> +-- +cgit 1.2.3-korg + |