Patch "ASoC: cs42l42: Fix missing include of gpio/consumer.h" has been added to the 6.5-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ASoC: cs42l42: Fix missing include of gpio/consumer.h

to the 6.5-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     asoc-cs42l42-fix-missing-include-of-gpio-consumer.h.patch
and it can be found in the queue-6.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 723603981d0a315306edb5be15469e6509f128b6
Author: Richard Fitzgerald <rf@xxxxxxxxxxxxxxxxxxxxx>
Date:   Wed Oct 11 14:48:53 2023 +0100

    ASoC: cs42l42: Fix missing include of gpio/consumer.h
    
    [ Upstream commit d6cbc6a3a856a7d8047316d81e2e039e44432acb ]
    
    The call to gpiod_set_value_cansleep() in cs42l42_sdw_update_status()
    needs the header file gpio/consumer.h to be included.
    
    This was introduced by commit 2d066c6a7865 ("ASoC: cs42l42: Avoid stale
    SoundWire ATTACH after hard reset")
    
    and caused error:
        sound/soc/codecs/cs42l42-sdw.c:374:4: error: implicit declaration of
        function ‘gpiod_set_value_cansleep’;
        did you mean gpio_set_value_cansleep’?
    
    Signed-off-by: Richard Fitzgerald <rf@xxxxxxxxxxxxxxxxxxxxx>
    Fixes: 2d066c6a7865 ("ASoC: cs42l42: Avoid stale SoundWire ATTACH after hard reset")
    Link: https://lore.kernel.org/r/20231011134853.20059-1-rf@xxxxxxxxxxxxxxxxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/soc/codecs/cs42l42-sdw.c b/sound/soc/codecs/cs42l42-sdw.c
index 974bae4abfad1..94a66a325303b 100644
--- a/sound/soc/codecs/cs42l42-sdw.c
+++ b/sound/soc/codecs/cs42l42-sdw.c
@@ -6,6 +6,7 @@
 
 #include <linux/acpi.h>
 #include <linux/device.h>
+#include <linux/gpio/consumer.h>
 #include <linux/iopoll.h>
 #include <linux/module.h>
 #include <linux/mod_devicetable.h>



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux