From 961869048b61c853a17f35b98be91c5630a73906 Mon Sep 17 00:00:00 2001 From: Mike Rapoport Date: Tue, 25 Nov 2008 10:19:52 +0200 Subject: regulator: da903x: make da903x_is_enabled return 0 or 1 Signed-off-by: Mike Rapoport Signed-off-by: Liam Girdwood --- drivers/regulator/da903x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/regulator/da903x.c') diff --git a/drivers/regulator/da903x.c b/drivers/regulator/da903x.c index 83101d68c12..fe77730a7ed 100644 --- a/drivers/regulator/da903x.c +++ b/drivers/regulator/da903x.c @@ -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 */ -- cgit v1.2.3