Unverified Commit e110ede8 authored by Colin Ian King's avatar Colin Ian King Committed by Mark Brown
Browse files

ASoC: wcd938x: Make read-only array minCode_param static const



Don't populate the read-only array minCode_param on the stack but
instead make it static const. Also makes the object code a little
smaller.

Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20221202170644.1814720-1-colin.i.king@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent ab148b46
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3128,7 +3128,7 @@ static inline void wcd938x_mbhc_get_result_params(struct wcd938x_priv *wcd938x,
	s16 c1;
	s32 x1, d1;
	int32_t denom;
	int minCode_param[] = {
	static const int minCode_param[] = {
		3277, 1639, 820, 410, 205, 103, 52, 26
	};