ASoC: soc.h: Add SOC_SINGLE_S_TLV() macro
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 5 Apr 2022 13:54:15 +0000 (14:54 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 5 Apr 2022 17:27:54 +0000 (18:27 +0100)
commitbc8cb02976cd602b8d7631a6f4a54a9cf305d38c
tree943a57958bce448c502a1023a9b6bd8404f34d6c
parent9a2c98418930c60e25b89a140c8b42a8cd6d84a6
ASoC: soc.h: Add SOC_SINGLE_S_TLV() macro

Add a convenience macro for defining a single (mono) TLV control
with a signed value. This can already be done by using
SOC_DOUBLE_R_S_TLV() with the same address for left and right
registers, but a dedicated macro is more readable.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220405135419.1230088-2-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h