linux/drivers/firmware/cirrus
Richard Fitzgerald e7af416aeb
firmware: cs_dsp: Remove unused struct list_head from cs_dsp_coeff_ctl
Remove two unused pointers from struct cs_dsp_coeff_ctl by taking the
struct list_head out of struct cs_dsp_alg_region. On a x86_64 build
this saves 16 bytes per control.

Each cs_dsp_coeff_ctl instance needs to keep information about the
algorithm region it refers to. This is done by embedding an instance
of struct cs_dsp_alg_region. But cs_dsp_alg_region was also used to
store entries in a list of algorithm regions, and so had a struct
list_head object for that purpose. This list_head object is not used
with the embedded object in struct cs_dsp_alg_region so was just
wasted bytes.

A new struct cs_dsp_alg_region_list_item has been defined for creating
the list of algorithm regions. It contains a struct cs_dsp_alg_region
and a struct list_head.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20250616103052.66537-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2025-06-16 13:26:44 +01:00
..
test firmware: cs_dsp: Fix OOB memory read access in KUnit test (ctl cache) 2025-05-26 11:33:52 +01:00
cs_dsp.c firmware: cs_dsp: Remove unused struct list_head from cs_dsp_coeff_ctl 2025-06-16 13:26:44 +01:00
Kconfig firmware: cs_dsp: tests: Depend on FW_CS_DSP rather then enabling it 2025-04-13 20:20:30 +01:00
Makefile firmware: cs_dsp: Add mock regmap for KUnit testing 2024-12-13 13:14:37 +00:00