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

index 9c6b272..ca897c4 100644 (file)
@@ -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;
        }
 }
 
@@ -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;
        }
 }