forked from luck/tmp_suning_uos_patched
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
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue
Block a user