commit | 961869048b61c853a17f35b98be91c5630a73906 | [log] [tgz] |
---|---|---|
author | Mike Rapoport <mike@compulab.co.il> | Tue Nov 25 10:19:52 2008 +0200 |
committer | Liam Girdwood <lrg@slimlogic.co.uk> | Thu Jan 08 20:10:31 2009 +0000 |
tree | decb1b8eacbe7df449eb6f9d6603ea9130f22958 | |
parent | 471d8d49a752a8ee3caf606dca83f7d7b99355f7 [diff] [blame] |
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>
diff --git a/drivers/regulator/da903x.c b/drivers/regulator/da903x.c index 83101d6..fe77730 100644 --- a/drivers/regulator/da903x.c +++ b/drivers/regulator/da903x.c
@@ -159,7 +159,7 @@ if (ret) return ret; - return reg_val & (1 << info->enable_bit); + return !!(reg_val & (1 << info->enable_bit)); } /* DA9030 specific operations */