]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: mediatek: mt8183: remove forward declaration of headset_init
authorTzung-Bi Shih <tzungbi@google.com>
Fri, 30 Aug 2019 07:42:39 +0000 (15:42 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 30 Aug 2019 12:02:24 +0000 (13:02 +0100)
commit115fc6aaabca437ab87efedf42c293258c030b4a
tree979431385b9ba1dd4efd36c151c3d53d53d4a40f
parentc247715a610f0e2937e0c5a10a679826f86e0918
ASoC: mediatek: mt8183: remove forward declaration of headset_init

The forward declaration of mt8183_mt6358_ts3a227_max98357_headset_init
is for cyclic dependency between card, headset_dev, and headset_init.

It used to be:
- card depends on headset_dev
- headset_dev depends on headset_init
- headset_init depends on card

Commit 07e6625d1ea7 ("ASoC: mediatek: mt8183: make headset codec
optional") removed the cyclic dependency.

Thus, it is safe to remove the forward declaration.

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20190830074240.195166-4-tzungbi@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c