Skip to content

Commit

Permalink
regulator: da903x: make da903x_is_enabled return 0 or 1
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
  • Loading branch information
Mike Rapoport authored and Liam Girdwood committed Jan 8, 2009
1 parent 471d8d4 commit 9618690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/da903x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 9618690

Please sign in to comment.