diff options
author | Brian Austin <brian.austin@cirrus.com> | 2014-08-28 11:02:40 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-08-28 14:04:27 -0400 |
commit | 7eef08554ca35454e6da0de8a74f7c96bc2e58e0 (patch) | |
tree | 532842eb1c398f921e5ea8aa25dfa809f69f06e0 /sound/soc/codecs/cs35l32.c | |
parent | 38f57532ede565a3c71da7b7727369f374c51acb (diff) |
ASoC: cs35l32: use true/false returns for bool functions
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>
Diffstat (limited to 'sound/soc/codecs/cs35l32.c')
-rw-r--r-- | sound/soc/codecs/cs35l32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/cs35l32.c b/sound/soc/codecs/cs35l32.c index 9c6b2723d343..ca897c49afdf 100644 --- a/sound/soc/codecs/cs35l32.c +++ b/sound/soc/codecs/cs35l32.c | |||
@@ -121,9 +121,9 @@ static bool cs35l32_volatile_register(struct device *dev, unsigned int reg) | |||
121 | case CS35L32_INT_STATUS_2: | 121 | case CS35L32_INT_STATUS_2: |
122 | case CS35L32_INT_STATUS_3: | 122 | case CS35L32_INT_STATUS_3: |
123 | case CS35L32_LED_STATUS: | 123 | case CS35L32_LED_STATUS: |
124 | return 1; | 124 | return true; |
125 | default: | 125 | default: |
126 | return 0; | 126 | return false; |
127 | } | 127 | } |
128 | } | 128 | } |
129 | 129 | ||
@@ -134,9 +134,9 @@ static bool cs35l32_precious_register(struct device *dev, unsigned int reg) | |||
134 | case CS35L32_INT_STATUS_2: | 134 | case CS35L32_INT_STATUS_2: |
135 | case CS35L32_INT_STATUS_3: | 135 | case CS35L32_INT_STATUS_3: |
136 | case CS35L32_LED_STATUS: | 136 | case CS35L32_LED_STATUS: |
137 | return 1; | 137 | return true; |
138 | default: | 138 | default: |
139 | return 0; | 139 | return false; |
140 | } | 140 | } |
141 | } | 141 | } |
142 | 142 | ||