diff options
author | Hans de Goede <hdegoede@redhat.com> | 2022-01-06 12:01:24 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-01-06 14:55:48 +0100 |
commit | a3b1aaf7aef9fa945810de3fd7c15b2e93ecdbfd (patch) | |
tree | 9c2836c4e77fcac7b2336c0273dd61f3c9a696a0 /sound/soc/codecs/rt5640.h | |
parent | ASoC: rt5640: Fix possible NULL pointer deref on resume (diff) | |
download | linux-a3b1aaf7aef9fa945810de3fd7c15b2e93ecdbfd.tar.xz linux-a3b1aaf7aef9fa945810de3fd7c15b2e93ecdbfd.zip |
ASoC: rt5640: Change jack_work to a delayed_work
Change jack_work from a struct work_struct to a struct delayed_work, this
is a preparation patch for adding support for boards where an external
GPIO is used for jack-detect, rather then one of the JD pins of the codec.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220106110128.66049-3-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5640.h')
-rw-r--r-- | sound/soc/codecs/rt5640.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5640.h b/sound/soc/codecs/rt5640.h index 2c28f83e338a..7ab930def8dd 100644 --- a/sound/soc/codecs/rt5640.h +++ b/sound/soc/codecs/rt5640.h @@ -2145,7 +2145,7 @@ struct rt5640_priv { int release_count; int poll_count; struct delayed_work bp_work; - struct work_struct jack_work; + struct delayed_work jack_work; struct snd_soc_jack *jack; unsigned int jd_src; bool jd_inverted; |