Commit 96186904 authored by Mike Rapoport's avatar Mike Rapoport Committed by Liam Girdwood

regulator: da903x: make da903x_is_enabled return 0 or 1

Signed-off-by: default avatarMike Rapoport <mike@compulab.co.il>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 471d8d49
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment