mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
soundwire: slave: use SDW_DISCO_LINK_ID()
use SDW_DISCO_LINK_ID() in slave code to extract field values instead of open coding masks and shift operations to extract link_id Signed-off-by: Vinod Koul <[email protected]> Tested-by: Bard Liao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
1 parent
d5826a4bdb
commit
bd6a024f21
1 file changed
+1
-1
@@ -106,7 +106,7 @@ static bool find_slave(struct sdw_bus *bus,
|
||||
}
|
||||
|
||||
/* Extract link id from ADR, Bit 51 to 48 (included) */
|
||||
link_id = (addr >> 48) & GENMASK(3, 0);
|
||||
link_id = SDW_DISCO_LINK_ID(addr);
|
||||
|
||||
/* Check for link_id match */
|
||||
if (link_id != bus->link_id)
|
||||
|
||||
Reference in new issue
Block a user