ASoC: cs42l52: use true/false returns for bool functions
authorBrian Austin <brian.austin@cirrus.com>
Thu, 28 Aug 2014 15:02:41 +0000 (10:02 -0500)
committerMark Brown <broonie@linaro.org>
Thu, 28 Aug 2014 18:04:53 +0000 (19:04 +0100)
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>
sound/soc/codecs/cs42l52.c

index 969167d..da4f758 100644 (file)
@@ -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;
        }
 }