projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
471d8d4
)
regulator: da903x: make da903x_is_enabled return 0 or 1
author
Mike Rapoport
<mike@compulab.co.il>
Tue, 25 Nov 2008 08:19:52 +0000
(10:19 +0200)
committer
Liam Girdwood
<lrg@slimlogic.co.uk>
Thu, 8 Jan 2009 20:10:31 +0000
(20:10 +0000)
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/da903x.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/da903x.c
b/drivers/regulator/da903x.c
index 83101d68c12e4fa9e49e26fbfd150be0a20b3d38..fe77730a7edb73442b088a4e325dd70d4c2a6366 100644
(file)
--- 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 */