summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorGustavo A. R. Silva2018-08-04 23:52:35 +0200
committerMark Brown2018-08-06 13:35:28 +0200
commiteb086306bc6b42dc2c538ec2350d44a82d1a835b (patch)
tree154557a9586c660657512963b8acf97f1ec25d87 /sound/soc
parentASoC: cs4270: use true and false for boolean values (diff)
downloadkernel-qcow2-linux-eb086306bc6b42dc2c538ec2350d44a82d1a835b.tar.gz
kernel-qcow2-linux-eb086306bc6b42dc2c538ec2350d44a82d1a835b.tar.xz
kernel-qcow2-linux-eb086306bc6b42dc2c538ec2350d44a82d1a835b.zip
ASoC: wm8996: use true and false for boolean values
Return statements in functions returning bool should use true or false instead of an integer value. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/wm8996.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c
index 78a408236cfb..91711f8958c5 100644
--- a/sound/soc/codecs/wm8996.c
+++ b/sound/soc/codecs/wm8996.c
@@ -1498,9 +1498,9 @@ static bool wm8996_readable_register(struct device *dev, unsigned int reg)
case WM8996_RIGHT_PDM_SPEAKER:
case WM8996_PDM_SPEAKER_MUTE_SEQUENCE:
case WM8996_PDM_SPEAKER_VOLUME:
- return 1;
+ return true;
default:
- return 0;
+ return false;
}
}
@@ -1522,9 +1522,9 @@ static bool wm8996_volatile_register(struct device *dev, unsigned int reg)
case WM8996_MIC_DETECT_3:
case WM8996_HEADPHONE_DETECT_1:
case WM8996_HEADPHONE_DETECT_2:
- return 1;
+ return true;
default:
- return 0;
+ return false;
}
}