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:
Vinod Koul committed 2020-09-04 14:46:42 +05:30
1 parent d5826a4bdb
commit bd6a024f21
1 file changed
+1 -1
+1 -1
View File
@@ -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)