ASoC: da7218: fix boolreturn.cocci warnings

Author: kbuild test robot <fengguang.wu@intel.com>

sound/soc/codecs/da7218.c:3214:9-10: WARNING: return of 0/1 in function 'da7218_volatile_register' with return type bool

 Return statements in functions returning bool should use
 true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci

Signed-off-by: Fengguang Wu 
Signed-off-by: Mark Brown 
---
 sound/soc/codecs/da7218.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 
diff --git a/sound/soc/codecs/da7218.c b/sound/soc/codecs/da7218.c
index ed0c9a2..4fee7ae 100644
--- a/sound/soc/codecs/da7218.c
+++ b/sound/soc/codecs/da7218.c
@@ -3211,9 +3211,9 @@ static bool da7218_volatile_register(struct device *dev, unsigned int reg)
 	case DA7218_HPLDET_TEST:
 	case DA7218_EVENT_STATUS:
 	case DA7218_EVENT:
-		return 1;
+		return true;
 	default:
-		return 0;
+		return false;
 	}
 }
BtrLinux
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.