Skip to content

Commit c72585d

Browse files
krzkbroonie
authored andcommitted
ASoC: codecs: lpass-rx-macro: Use unsigned for number of widgets
Driver uses ARRAY_SIZE() to get number of widgets later passed to snd_soc_dapm_new_controls(), which is an 'unsigned int'. Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://patch.msgid.link/20240701-b4-qcom-audio-lpass-codec-cleanups-v3-5-6d98d4dd1ef5@linaro.org Signed-off-by: Mark Brown <[email protected]>
1 parent bf95919 commit c72585d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/codecs/lpass-rx-macro.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3612,8 +3612,8 @@ static int rx_macro_component_probe(struct snd_soc_component *component)
36123612
struct rx_macro *rx = snd_soc_component_get_drvdata(component);
36133613
const struct snd_soc_dapm_widget *widgets;
36143614
const struct snd_kcontrol_new *controls;
3615-
unsigned int num_controls;
3616-
int ret, num_widgets;
3615+
unsigned int num_controls, num_widgets;
3616+
int ret;
36173617

36183618
snd_soc_component_init_regmap(component, rx->regmap);
36193619

0 commit comments

Comments
 (0)