]> git.itanic.dy.fi Git - linux-stable/commit
ASoC: cs42l56: fix DT probe
authorArnd Bergmann <arnd@arndb.de>
Thu, 26 Jan 2023 16:21:24 +0000 (17:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:50:34 +0000 (12:50 +0100)
commit6644685f79718a275be61ae7d24ea16c943f1292
tree6e1aaf2671aa9a0e10f01ad95059f6e69ccbe58f
parentd23b66b16e3022a8a099c6713f2e50b37a345fb1
ASoC: cs42l56: fix DT probe

[ Upstream commit e18c6da62edc780e4f4f3c9ce07bdacd69505182 ]

While looking through legacy platform data users, I noticed that
the DT probing never uses data from the DT properties, as the
platform_data structure gets overwritten directly after it
is initialized.

There have never been any boards defining the platform_data in
the mainline kernel either, so this driver so far only worked
with patched kernels or with the default values.

For the benefit of possible downstream users, fix the DT probe
by no longer overwriting the data.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230126162203.2986339-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/cs42l56.c