Skip to content

Commit

Permalink
ASoC: cs35l32: use true/false returns for bool functions
Browse files Browse the repository at this point in the history
Return true or false instead of 1 and 0

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Brian Austin authored and Mark Brown committed Aug 28, 2014
1 parent 38f5753 commit 7eef085
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sound/soc/codecs/cs35l32.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ static bool cs35l32_volatile_register(struct device *dev, unsigned int reg)
case CS35L32_INT_STATUS_2:
case CS35L32_INT_STATUS_3:
case CS35L32_LED_STATUS:
return 1;
return true;
default:
return 0;
return false;
}
}

Expand All @@ -134,9 +134,9 @@ static bool cs35l32_precious_register(struct device *dev, unsigned int reg)
case CS35L32_INT_STATUS_2:
case CS35L32_INT_STATUS_3:
case CS35L32_LED_STATUS:
return 1;
return true;
default:
return 0;
return false;
}
}

Expand Down

0 comments on commit 7eef085

Please sign in to comment.