ASoC: wm8580: Simplify probe()
authorBiju Das <biju.das.jz@bp.renesas.com>
Mon, 28 Aug 2023 17:40:19 +0000 (18:40 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 11 Sep 2023 00:30:00 +0000 (01:30 +0100)
commit26eacb98ca7dd3ba5a6845028a13d13a7f03123f
treef61c5bef780f4e63f0d8cf3bc32e944f497a31ad
parent43f2d432e47ebf2d7518fdef50d7cc70da376b0e
ASoC: wm8580: Simplify probe()

Simplify probe() by replacing of_match_device->i2c_get_match_data() and
extend matching support for ID table.

While at it, remove comma in the terminator entry and simplify probe()
by replacing dev_err->dev_err_probe().

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230828174019.119250-1-biju.das.jz@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8580.c