diff options
author | Mike Rapoport <mike@compulab.co.il> | 2008-11-25 09:19:52 +0100 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2009-01-08 21:10:31 +0100 |
commit | 961869048b61c853a17f35b98be91c5630a73906 (patch) | |
tree | decb1b8eacbe7df449eb6f9d6603ea9130f22958 /drivers/regulator/da903x.c | |
parent | regulator: da903x: add '\n' to error messages (diff) | |
download | linux-961869048b61c853a17f35b98be91c5630a73906.tar.xz linux-961869048b61c853a17f35b98be91c5630a73906.zip |
regulator: da903x: make da903x_is_enabled return 0 or 1
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to '')
-rw-r--r-- | drivers/regulator/da903x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/da903x.c b/drivers/regulator/da903x.c index 83101d68c12e..fe77730a7edb 100644 --- a/drivers/regulator/da903x.c +++ b/drivers/regulator/da903x.c @@ -159,7 +159,7 @@ static int da903x_is_enabled(struct regulator_dev *rdev) if (ret) return ret; - return reg_val & (1 << info->enable_bit); + return !!(reg_val & (1 << info->enable_bit)); } /* DA9030 specific operations */ |