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>
This commit is contained in:
Oder Chiou 2014-05-08 15:42:37 +08:00 committed by Mark Brown
parent 0f776efd86
commit 71bfa9b4d6

View File

@ -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;
}
}