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:
Mike Rapoport 2008-11-25 10:19:52 +02:00 committed by Liam Girdwood
parent 471d8d49a7
commit 961869048b
1 changed files with 1 additions and 1 deletions

View File

@ -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 */