OSDN Git Service

ASoC: cs4265: Change return values to boolean.
authorPaul Handrigan <Paul.Handrigan@cirrus.com>
Sat, 28 Jun 2014 16:34:25 +0000 (11:34 -0500)
committerMark Brown <broonie@linaro.org>
Mon, 30 Jun 2014 10:11:58 +0000 (11:11 +0100)
The cs4265_volatile_register reutrns a bool. The function now returns
true or false vs 1 and 0.

Signed-off-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/cs4265.c

index c9c04d2..4c4bf21 100644 (file)
@@ -87,9 +87,9 @@ static bool cs4265_volatile_register(struct device *dev, unsigned int reg)
 {
        switch (reg) {
        case CS4265_INT_STATUS:
-               return 1;
+               return true;
        default:
-               return 0;
+               return false;
        }
 }