]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit480ee2038e604a0bf152adabf9501628b049fbcd
tree5705de849827126cddc1b35908157e72ca2d2d11
parent03fd6e2a1c712c4df4f0040f0c2226c0f2bcadbf
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: f11a5e3d6e93 ("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