[PATCH v2 1/2] regulator: add support for regulators on the ab8500 MFD
Mark Brown
broonie at opensource.wolfsonmicro.com
Wed Oct 27 13:33:41 EDT 2010
On Wed, Oct 27, 2010 at 02:25:44PM -0200, Thiago Farina wrote:
> Shouldn't be this returning 1 instead of true and 0 instead false
> (since the return type is int not bool)?
There is no reason to do this, logical values are treated as 0 and 1 in
C. Using false and true is clear and won't cause any difference in
code.
> Maybe like this?
> return (ret & info->mask) ? 1: 0;
No, that's needlessly obfuscated.
More information about the linux-arm-kernel
mailing list