Skip to content

Commit 01e709a

Browse files
rriveramcrusbroonie
authored andcommitted
ASoC: cs35l45: Corrects cs35l45_get_clk_freq_id function data type
Changes cs35l45_get_clk_freq_id() function data type from unsigned int to int. This function is returns a positive index value if successful or a negative error code if unsuccessful. Functionally there should be no difference as long as the unsigned int return is interpreted as an int, however it should be corrected for readability. Signed-off-by: Ricardo Rivera-Matos <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 8510978 commit 01e709a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sound/soc/codecs/cs35l45-tables.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ static const struct {
315315
{ 0x3B, 24576000 },
316316
};
317317

318-
unsigned int cs35l45_get_clk_freq_id(unsigned int freq)
318+
int cs35l45_get_clk_freq_id(unsigned int freq)
319319
{
320320
int i;
321321

sound/soc/codecs/cs35l45.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ extern const struct dev_pm_ops cs35l45_pm_ops;
507507
extern const struct regmap_config cs35l45_i2c_regmap;
508508
extern const struct regmap_config cs35l45_spi_regmap;
509509
int cs35l45_apply_patch(struct cs35l45_private *cs35l45);
510-
unsigned int cs35l45_get_clk_freq_id(unsigned int freq);
510+
int cs35l45_get_clk_freq_id(unsigned int freq);
511511
int cs35l45_probe(struct cs35l45_private *cs35l45);
512512
void cs35l45_remove(struct cs35l45_private *cs35l45);
513513

0 commit comments

Comments
 (0)