ASoC: ak4613: Simplify probe()
authorBiju Das <biju.das.jz@bp.renesas.com>
Sun, 13 Aug 2023 07:34:58 +0000 (08:34 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 14 Aug 2023 12:10:36 +0000 (13:10 +0100)
commitb39eee2754e9fbcbbdd866c1aad59575d8c4342e
treefadd34b0ef914803fc62269bd1e4166491d405fa
parent446b31e894935ebbcf84302061a4e0e2efb2368f
ASoC: ak4613: Simplify probe()

Simpilfy probe() by replacing of_device_get_match_data() and id lookup for
retrieving match data by i2c_get_match_data().

While at it, drop unused local variable np from probe().

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230813073458.59606-1-biju.das.jz@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/ak4613.c