OSDN Git Service

soundwire: remove bitfield for unique_id, use u8
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 22 Oct 2019 23:48:06 +0000 (18:48 -0500)
committerVinod Koul <vkoul@kernel.org>
Sat, 9 Nov 2019 11:16:56 +0000 (16:46 +0530)
commit5bd54539788b3b3a415e84204cc89f918658d56d
treeeb75e2aa2f592ae0e7cd2b12e509e3d5baf0995b
parentc134f914e9f55b7817e2bae625ec0e5f1379f7cd
soundwire: remove bitfield for unique_id, use u8

There is no good reason why the unique_id needs to be stored as 4
bits. The code will work without changes with a u8 since all values
are already filtered while parsing the ACPI tables and Slave devID
registers.

Use u8 representation. This will allow us to encode a
"IGNORE_UNIQUE_ID" value to account for firmware/BIOS creativity.

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