soundwire: slave: add helper to extract slave ID
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 22 Oct 2019 23:48:07 +0000 (18:48 -0500)
committerVinod Koul <vkoul@kernel.org>
Sat, 9 Nov 2019 11:16:56 +0000 (16:46 +0530)
commitde5b174b3bc8b8fa4921a7d6bd4b2e646120640d
tree315ead07b2d9ba7764bb68648a1c224725487c0b
parent5bd54539788b3b3a415e84204cc89f918658d56d
soundwire: slave: add helper to extract slave ID

Simplify the loop with a helper. The only functionality change is that
we continue the loop even with an ACPI error.

Follow-up patches will build on this change.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191022234808.17432-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/slave.c