diff options
Diffstat (limited to 'drivers/regulator')
-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) | |||
159 | if (ret) | 159 | if (ret) |
160 | return ret; | 160 | return ret; |
161 | 161 | ||
162 | return reg_val & (1 << info->enable_bit); | 162 | return !!(reg_val & (1 << info->enable_bit)); |
163 | } | 163 | } |
164 | 164 | ||
165 | /* DA9030 specific operations */ | 165 | /* DA9030 specific operations */ |