ASoC: amd: vangogh: Use dmi_first_match() for DMI quirk handling
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Wed, 5 Jul 2023 21:47:59 +0000 (00:47 +0300)
committerMark Brown <broonie@kernel.org>
Sun, 9 Jul 2023 21:47:56 +0000 (22:47 +0100)
commit3dd26e27ccb4f18b4d25c0a49e1888eca9c6a724
tree2073b390f56e6008d848250a4431fe8c32f4d624
parenta0cb05cb70b469198ad86c0b13b02cbba3ecd8fd
ASoC: amd: vangogh: Use dmi_first_match() for DMI quirk handling

In preparation for supporting ACPI probing, move DMI quirk handling
logic at the probe's top, to be able to return as quickly as possible in
case there is no DMI matching.

Additionally, simplify the code by replacing dmi_check_system() and
related callback with dmi_first_match(). While at it, also drop a few
unnecessary empty lines.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://lore.kernel.org/r/20230705214800.193244-3-cristian.ciocaltea@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/vangogh/acp5x-mach.c