diff mbox

ASoC: cs4265: Change return values to boolean.

Message ID 1403973265-19787-1-git-send-email-Paul.Handrigan@cirrus.com (mailing list archive)
State Accepted
Commit 59f5cbecf9531e56b1da16c9343349e3e3ea972b
Headers show

Commit Message

Paul Handrigan June 28, 2014, 4:34 p.m. UTC
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>
---
 sound/soc/codecs/cs4265.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Mark Brown June 30, 2014, 10:12 a.m. UTC | #1
On Sat, Jun 28, 2014 at 11:34:25AM -0500, Paul Handrigan wrote:
> The cs4265_volatile_register reutrns a bool. The function now returns
> true or false vs 1 and 0.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c
index c9c04d2..4c4bf21 100644
--- a/sound/soc/codecs/cs4265.c
+++ b/sound/soc/codecs/cs4265.c
@@ -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;
 	}
 }