mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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>
This commit is contained in:
parent
471d8d49a7
commit
961869048b
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ static int da903x_is_enabled(struct regulator_dev *rdev)
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
return reg_val & (1 << info->enable_bit);
|
return !!(reg_val & (1 << info->enable_bit));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* DA9030 specific operations */
|
/* DA9030 specific operations */
|
||||||
|
|
Loading…
Reference in a new issue