soundwire: add helper macros for devID fields
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 25 Feb 2020 17:00:41 +0000 (11:00 -0600)
committerVinod Koul <vkoul@kernel.org>
Wed, 26 Feb 2020 08:48:25 +0000 (14:18 +0530)
commit2c6cff682d6681fb1cdb03b3cdbbecd3fb0e4c89
tree0359dfc953b820f3b73eb1a2175c1d81740903ee
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
soundwire: add helper macros for devID fields

Move bit extractors to macros, so that the definitions can be used by
other drivers parsing the MIPI definitions extracted from firmware
tables (ACPI or DT).

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200225170041.23644-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c
include/linux/soundwire/sdw.h