summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Austin <brian.austin@cirrus.com>2014-08-28 10:02:41 -0500
committerMark Brown <broonie@linaro.org>2014-08-28 19:04:53 +0100
commit5c216cc3f37a6eecb4e12ab0248b66e6386da0fe (patch)
tree9f18b1bac4e058265dde30b7d65f23a0d0c08c51
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9 (diff)
downloadop-kernel-dev-5c216cc3f37a6eecb4e12ab0248b66e6386da0fe.zip
op-kernel-dev-5c216cc3f37a6eecb4e12ab0248b66e6386da0fe.tar.gz
ASoC: cs42l52: use true/false returns for bool functions
Return true or false instead of 1 and 0 Signed-off-by: Brian Austin <brian.austin@cirrus.com> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--sound/soc/codecs/cs42l52.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/cs42l52.c b/sound/soc/codecs/cs42l52.c
index 969167d..da4f758 100644
--- a/sound/soc/codecs/cs42l52.c
+++ b/sound/soc/codecs/cs42l52.c
@@ -176,9 +176,9 @@ static bool cs42l52_volatile_register(struct device *dev, unsigned int reg)
case CS42L52_BATT_LEVEL:
case CS42L52_SPK_STATUS:
case CS42L52_CHARGE_PUMP:
- return 1;
+ return true;
default:
- return 0;
+ return false;
}
}
OpenPOWER on IntegriCloud