diff mbox

[1/3] ASoC: cs35l32: use true/false returns for bool functions

Message ID 1409238162-13400-1-git-send-email-brian.austin@cirrus.com (mailing list archive)
State Accepted
Commit 7eef08554ca35454e6da0de8a74f7c96bc2e58e0
Headers show

Commit Message

Austin, Brian Aug. 28, 2014, 3:02 p.m. UTC
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>
---
 sound/soc/codecs/cs35l32.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Mark Brown Aug. 28, 2014, 6:05 p.m. UTC | #1
On Thu, Aug 28, 2014 at 10:02:40AM -0500, Brian Austin wrote:
> Return true or false instead of 1 and 0

Applied all, thanks.
diff mbox

Patch

diff --git a/sound/soc/codecs/cs35l32.c b/sound/soc/codecs/cs35l32.c
index 9c6b272..ca897c4 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)
 	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;
 	}
 }