]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
soundwire: define and use addr bit masks
authorVinod Koul <vkoul@kernel.org>
Thu, 3 Sep 2020 11:44:56 +0000 (17:14 +0530)
committerVinod Koul <vkoul@kernel.org>
Fri, 4 Sep 2020 09:16:41 +0000 (14:46 +0530)
commit25e804926da39f1de7ae486920bfe65b099195f1
tree3e8eabdb942cce90d3b55a31ed9b84fc1bfbec40
parent5ee74eb280d0aa1f27fbdba5dcbde31e2df369e2
soundwire: define and use addr bit masks

Soundwire addr is a 52bit value encoding link, version, unique id,
mfg id, part id and class id. Define bit masks for these and use
FIELD_GET() to extract these fields.

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-2-vkoul@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
include/linux/soundwire/sdw.h