Re: [PATCH v2 1/2] regulator: add support for regulators on the ab8500 MFD

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thiago Farina
Date: Wednesday, October 27, 2010 - 9:25 am

On Tue, Jul 13, 2010 at 12:09 PM, Sundar Iyer
<sundar.iyer@stericsson.com> wrote:

Shouldn't be this returning 1 instead of true and 0 instead false
(since the return type is int not bool)?

Maybe like this?
return (ret & info->mask) ? 1: 0;
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH v2 1/2] regulator: add support for regulators o ..., Thiago Farina, (Wed Oct 27, 9:25 am)