summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorOder Chiou <oder_chiou@realtek.com>2014-05-08 15:42:37 +0800
committerMark Brown <broonie@linaro.org>2014-05-08 09:02:41 +0100
commit71bfa9b4d6d11c093e0db5d27b1d05803cbbaffc (patch)
tree6dc2c9501a7466aae89d8b02d0ab9eb7eee6474c /sound/soc
parent0f776efd86282ec750c26dbb1c2fd04b94949a28 (diff)
downloadlinux-rt-71bfa9b4d6d11c093e0db5d27b1d05803cbbaffc.tar.gz
ASoC: rt5645: fix coccinelle warnings
Return statements in functions returning bool should use true/false instead of 1/0. Signed-off-by: Oder Chiou <oder_chiou@realtek.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/rt5645.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index 30410eb5b982..68923eca7d9c 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -242,9 +242,9 @@ static bool rt5645_volatile_register(struct device *dev, unsigned int reg)
case RT5645_VENDOR_ID:
case RT5645_VENDOR_ID1:
case RT5645_VENDOR_ID2:
- return 1;
+ return true;
default:
- return 0;
+ return false;
}
}
@@ -391,9 +391,9 @@ static bool rt5645_readable_register(struct device *dev, unsigned int reg)
case RT5645_VENDOR_ID:
case RT5645_VENDOR_ID1:
case RT5645_VENDOR_ID2:
- return 1;
+ return true;
default:
- return 0;
+ return false;
}
}