Commit 6f6d8b2d authored by Colin Ian King's avatar Colin Ian King Committed by Mark Brown

ASoC: codecs: wcd934x: make read-only array minCode_param static const

Don't populate the read-only array minCode_param on the stack at
run time, instead make it static const.
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Link: https://patch.msgid.link/20240821114927.520193-1-colin.i.king@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent aaf55d12
...@@ -2643,8 +2643,8 @@ static void wcd934x_mbhc_get_result_params(struct wcd934x_codec *wcd934x, ...@@ -2643,8 +2643,8 @@ static void wcd934x_mbhc_get_result_params(struct wcd934x_codec *wcd934x,
s16 c1; s16 c1;
s32 x1, d1; s32 x1, d1;
int32_t denom; int32_t denom;
int minCode_param[] = { static const int minCode_param[] = {
3277, 1639, 820, 410, 205, 103, 52, 26 3277, 1639, 820, 410, 205, 103, 52, 26
}; };
regmap_update_bits(wcd934x->regmap, WCD934X_ANA_MBHC_ZDET, 0x20, 0x20); regmap_update_bits(wcd934x->regmap, WCD934X_ANA_MBHC_ZDET, 0x20, 0x20);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment