summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/da7218.c
diff options
context:
space:
mode:
authorkbuild test robot <fengguang.wu@intel.com>2015-11-30 21:40:51 +0300
committerMark Brown <broonie@kernel.org>2015-12-01 22:29:09 +0300
commit112446aa2e1262c41fddfc664fa418ce2d615328 (patch)
tree145e333f97983301af023c2479e3e5cfc9fd4f0d /sound/soc/codecs/da7218.c
parent4d50934abd2261fd467320d52c470efff309fd74 (diff)
downloadlinux-112446aa2e1262c41fddfc664fa418ce2d615328.tar.xz
ASoC: da7218: fix boolreturn.cocci warnings
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 <fengguang.wu@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/da7218.c')
-rw-r--r--sound/soc/codecs/da7218.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/da7218.c b/sound/soc/codecs/da7218.c
index ed0c9a26065b..4fee7aeaadc7 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;
}
}