]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soundwire: SDCA: Add additional SDCA address macros
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 7 Jan 2025 15:44:03 +0000 (15:44 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 7 Jan 2025 20:20:57 +0000 (20:20 +0000)
commit7b16e60b31202254c62a29f5c709ffb42684b6f9
tree4c68408f483a52e8f1c2ac7403f70210b5bae123
parent9d89551994a430b50c4fffcb1e617a057fa76e20
soundwire: SDCA: Add additional SDCA address macros

Compliment the existing macro to construct an SDCA control address
with macros to extract the constituent parts, and validation of such
an address. Also update the masks for the original macro to use
GENMASK to make mental comparisons with the included comment on the
address format easier.

Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20250107154408.814455-2-ckeepax@opensource.cirrus.com
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/soundwire/sdw_registers.h