ASoC: rt5682s: Use the devm_clk_get_optional() helper
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 20 May 2023 14:58:24 +0000 (16:58 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 22 May 2023 10:18:57 +0000 (11:18 +0100)
commit17cf9faeba463d24e7c497ff8137a8c8414644dc
tree43567add73405a9b454d9b834ece217a3e201212
parent0b855cbbd769940fcaf49b2371a05235d8499d5d
ASoC: rt5682s: Use the devm_clk_get_optional() helper

Use devm_clk_get_optional() instead of hand writing it.
This saves some LoC and improves the semantic.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/f538c24ad7b1926478347a03b5b7f0432e195e3b.1684594691.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5682s.c