summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-08-04 17:52:35 -0400
committerMark Brown <broonie@kernel.org>2018-08-06 07:35:28 -0400
commiteb086306bc6b42dc2c538ec2350d44a82d1a835b (patch)
tree154557a9586c660657512963b8acf97f1ec25d87 /sound
parentc34c4515286f27e7e99d8a0011b4322d1de6c9bc (diff)
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')
-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)
1498 case WM8996_RIGHT_PDM_SPEAKER: 1498 case WM8996_RIGHT_PDM_SPEAKER:
1499 case WM8996_PDM_SPEAKER_MUTE_SEQUENCE: 1499 case WM8996_PDM_SPEAKER_MUTE_SEQUENCE:
1500 case WM8996_PDM_SPEAKER_VOLUME: 1500 case WM8996_PDM_SPEAKER_VOLUME:
1501 return 1; 1501 return true;
1502 default: 1502 default:
1503 return 0; 1503 return false;
1504 } 1504 }
1505} 1505}
1506 1506
@@ -1522,9 +1522,9 @@ static bool wm8996_volatile_register(struct device *dev, unsigned int reg)
1522 case WM8996_MIC_DETECT_3: 1522 case WM8996_MIC_DETECT_3:
1523 case WM8996_HEADPHONE_DETECT_1: 1523 case WM8996_HEADPHONE_DETECT_1:
1524 case WM8996_HEADPHONE_DETECT_2: 1524 case WM8996_HEADPHONE_DETECT_2:
1525 return 1; 1525 return true;
1526 default: 1526 default:
1527 return 0; 1527 return false;
1528 } 1528 }
1529} 1529}
1530 1530