soundwire: intel: use {u32|u16}p_replace_bits
authorVinod Koul <vkoul@kernel.org>
Thu, 17 Sep 2020 12:01:46 +0000 (17:31 +0530)
committerVinod Koul <vkoul@kernel.org>
Fri, 18 Sep 2020 12:19:44 +0000 (17:49 +0530)
commitf067c9251797ab0ff13cb4c6d5f5a0e6dc2c65d3
tree5705de849827126cddc1b35908157e72ca2d2d11
parent714db045cf30f7897dded6417cf70f9426c6b87b
soundwire: intel: use {u32|u16}p_replace_bits

FIELD_PREP() does not replace the bits so it is not apt in case where we
modify a register.

Use u32_replace_bits() or u16_replace_bits() instead.

Fixes: 3b4979cabd4b ("soundwire: intel: use FIELD_{GET|PREP}")
Tested-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20200917120146.1780323-3-vkoul@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/intel.c