ASoC: cs42xx8-i2c: Simplify probe()
authorBiju Das <biju.das.jz@bp.renesas.com>
Mon, 28 Aug 2023 17:48:56 +0000 (18:48 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 11 Sep 2023 00:30:01 +0000 (01:30 +0100)
commitad191992330cfeb80ba341d1e75d9fe2719ced68
treee1ebda7ac86d99b3bcf7c1e59db130634f1e87de
parent26eacb98ca7dd3ba5a6845028a13d13a7f03123f
ASoC: cs42xx8-i2c: Simplify probe()

Simplify probe() by replacing of_match_device->i2c_get_match_data() and
extend matching support for ID table. Also replace
dev_err()->dev_err_probe() to simplify the code.

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/20230828174856.122559-1-biju.das.jz@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42xx8-i2c.c