diff options
| author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2026-04-30 18:09:30 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-05-04 16:24:41 +0300 |
| commit | df036250d7d5f751de04300a5600b2dadb927ae9 (patch) | |
| tree | 2df06eb5e2a8c9ffbc2361d3f48b50031a2a6a1a /include/linux | |
| parent | cb3c257e08248521b22c67259d50ebb18574d1a1 (diff) | |
| download | linux-df036250d7d5f751de04300a5600b2dadb927ae9.tar.xz | |
ASoC: SDCA: Remove sdca_function_data duplication
The class driver internally has an array of sdca_function_data pointers
that it uses to store the parsed DisCo data. However, there is already
an sdca_function_data attached to the auxdev device. It makes more sense
to use the one already provided in the auxdev device, as it could also
be used by custom drivers for parts that require those.
Using the auxdev copy also prevents the need for the class function
drivers to search through the array for the correct data, which
currently is based off matching the function type. This has problems
when two functions have the same type as the current code will find the
same data for both drivers, using the auxdev copy of the data avoids
this problem.
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260430150931.2025953-3-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
