Skip to contentSkip to conversation

ASoC: cs4265: Change return values to boolean.

PATCH Applied Paul Handrigan 2 participants 2 messages Jun 28, 2014 – Jun 30, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: cs4265: Change return values to boolean.

The cs4265_volatile_register reutrns a bool. The function now returns true or false vs 1 and 0.

---
 sound/soc/codecs/cs4265.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/cs4265.c +2 -2
index c9c04d2..4c4bf21 100644
@@ -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;
 	}
 }
 
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Paul Handrigan

The cs4265_volatile_register reutrns a bool. The function now returns true or false vs 1 and 0.

Applied, thanks.