diff options
author | Vinod Koul <vkoul@kernel.org> | 2020-09-03 17:15:03 +0530 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-09-04 14:46:42 +0530 |
commit | c30f92984117658d614e405ea476c3e8ebbd10aa (patch) | |
tree | 448a5ef7ab9a7dc11bc4c6a989e68b0d5b77a5b1 /drivers/soundwire | |
parent | 3b4979cabd4b49b84f794d8dd1625bbdb1213b05 (diff) | |
download | linux-c30f92984117658d614e405ea476c3e8ebbd10aa.tar.gz linux-c30f92984117658d614e405ea476c3e8ebbd10aa.tar.bz2 linux-c30f92984117658d614e405ea476c3e8ebbd10aa.zip |
soundwire: intel_init: use FIELD_{GET|PREP}
use FIELD_{GET|PREP} in intel_init driver to get/set field values
instead of open coding masks and shift operations.
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Tested-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20200903114504.1202143-9-vkoul@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire')
-rw-r--r-- | drivers/soundwire/intel_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soundwire/intel_init.c b/drivers/soundwire/intel_init.c index 65d9b9bd2106..cabdadb09a1b 100644 --- a/drivers/soundwire/intel_init.c +++ b/drivers/soundwire/intel_init.c @@ -383,7 +383,7 @@ static acpi_status sdw_intel_acpi_cb(acpi_handle handle, u32 level, * Name(_ADR, 0x40000000), with bits 31..28 representing the * SoundWire link so filter accordingly */ - if ((adr & GENMASK(31, 28)) >> 28 != SDW_LINK_TYPE) + if (FIELD_GET(GENMASK(31, 28), adr) != SDW_LINK_TYPE) return AE_OK; /* keep going */ /* device found, stop namespace walk */ |