Skip to content

Commit f81e630

Browse files
charleskeepaxbroonie
authored andcommitted
ASoC: SDCA: Fix return value in sdca_regmap_mbq_size()
The MBQ size function returns an integer representing the size of a Control. Currently if the Control is not found the function will return false which makes little sense. Correct this typo to return -EINVAL. Fixes: e3f7caf ("ASoC: SDCA: Add generic regmap SDCA helpers") Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Message-ID: <20250820163717.1095846-2-ckeepax@opensource.cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 1b237f1 commit f81e630

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sdca/sdca_regmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ int sdca_regmap_mbq_size(struct sdca_function_data *function, unsigned int reg)
196196

197197
control = function_find_control(function, reg);
198198
if (!control)
199-
return false;
199+
return -EINVAL;
200200

201201
return clamp_val(control->nbits / BITS_PER_BYTE, sizeof(u8), sizeof(u32));
202202
}

0 commit comments

Comments
 (0)