]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf4fde56d6e607084c569d05b580c518d32f1258e
tree943a57958bce448c502a1023a9b6bd8404f34d6c
parent9a0bee731eced78ec29694e1c8d145d578222e1d
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