diff options
| author | Christian A. Ehrhardt <christian.ehrhardt@codasip.com> | 2026-04-28 21:22:49 +0200 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-04-29 09:47:39 +0900 |
| commit | a201aef1a88b675e9eb8487e27d14e2eef3cef80 (patch) | |
| tree | 3688865ea958637280540768d7e337c31f29d1be /kernel | |
| parent | be102efb832ef7e30e4cd4c2edf22bbf64ddf35a (diff) | |
ASoC: codecs: ab8500: Fix casting of private data
ab8500_filter_controls[i].private_value is initialized using
.private_value = (unsigned long)&(struct filter_control)
{.count = xcount, .min = xmin, .max = xmax}
thus it's a pointer to a struct filter_control casted to unsigned long.
So to get back that pointer .private_data must be cast back, not its
address.
Fixes: 679d7abdc754 ("ASoC: codecs: Add AB8500 codec-driver")
Signed-off-by: Christian A. Ehrhardt <christian.ehrhardt@codasip.com>
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20260428192255.2294705-2-u.kleine-koenig@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
