Commit e7af416
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>1 parent 000d8b9 commit e7af416
2 files changed
Lines changed: 25 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
314 | 319 | | |
315 | 320 | | |
316 | 321 | | |
| |||
1752 | 1757 | | |
1753 | 1758 | | |
1754 | 1759 | | |
1755 | | - | |
| 1760 | + | |
1756 | 1761 | | |
1757 | 1762 | | |
1758 | 1763 | | |
1759 | | - | |
1760 | | - | |
1761 | | - | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
1762 | 1767 | | |
1763 | 1768 | | |
1764 | 1769 | | |
| |||
1769 | 1774 | | |
1770 | 1775 | | |
1771 | 1776 | | |
1772 | | - | |
| 1777 | + | |
1773 | 1778 | | |
1774 | | - | |
1775 | | - | |
| 1779 | + | |
| 1780 | + | |
1776 | 1781 | | |
1777 | 1782 | | |
1778 | | - | |
1779 | | - | |
1780 | | - | |
1781 | | - | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
1782 | 1787 | | |
1783 | | - | |
| 1788 | + | |
1784 | 1789 | | |
1785 | 1790 | | |
1786 | | - | |
| 1791 | + | |
1787 | 1792 | | |
1788 | | - | |
| 1793 | + | |
1789 | 1794 | | |
1790 | 1795 | | |
1791 | 1796 | | |
1792 | 1797 | | |
1793 | | - | |
| 1798 | + | |
1794 | 1799 | | |
1795 | 1800 | | |
1796 | | - | |
1797 | | - | |
1798 | | - | |
1799 | | - | |
1800 | | - | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
1801 | 1806 | | |
1802 | 1807 | | |
1803 | 1808 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
74 | | - | |
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
| |||
0 commit comments