Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f57f6c04 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Shrink code size for WM8962 register defaults table



Dramatically reduce the code size for the WM8962 register defaults table
by switching to explicitly initialise only defined registers, relying on
static defaulting to zero for the overwelming bulk of the register map.

Similar treatement for the register access table will come later and will
produce a similarly dramatic code size shrink.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 9d9641ec
Loading
Loading
Loading
Loading
+0 −21143

File changed.

Preview size limit exceeded, changes collapsed.

+687 −0

File changed.

Preview size limit exceeded, changes collapsed.

+0 −2
Original line number Diff line number Diff line
@@ -3775,8 +3775,6 @@
#define WM8962_VSS_ENA_SHIFT                         0  /* VSS_ENA */
#define WM8962_VSS_ENA_WIDTH                         1  /* VSS_ENA */

extern const u16 wm8962_reg[WM8962_MAX_REGISTER + 1];

struct wm8962_reg_access {
	u16 read;
	u16 write;