mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 16:19:53 +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
@ -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…
x
Reference in New Issue
Block a user