diff options
author | Herve Codina <[email protected]> | 2023-06-23 10:58:28 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-07-09 22:48:18 +0100 |
commit | 12e58fec5b2aff3ae6fef4e6c278f295a666b9b6 (patch) | |
tree | 87ec3e502f60a27646d9e59c92fcd97c7090f00c /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 7560418078b939e1e83f7dce502ec3c1ca8c152f (diff) |
ASoC: soc-dapm.h: Convert macros to return a compound literal
The SND_SOC_DAPM_* helpers family are used to build widgets array in a
static way.
Convert them to return a compound literal in order to use them in both
static and dynamic way.
With this conversion, the different SND_SOC_DAPM_* parameters can be
computed by the code and the widget can be built based on this parameter
computation.
static int create_widget(char *input_name)
{
struct snd_soc_dapm_widget widget;
char name*;
...
name = input_name;
if (!name)
name = "default";
widget = SND_SOC_DAPM_INPUT(name);
...
}
Signed-off-by: Herve Codina <[email protected]>
Suggested-by: Andy Shevchenko <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Reviewed-by: Christophe Leroy <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions