mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] regulator: da903x: make da903x_is_enabled return 0 or 1
@ 2008-11-25  8:19 Mike Rapoport
  2008-11-25 11:43 ` Liam Girdwood
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Rapoport @ 2008-11-25  8:19 UTC (permalink / raw)
  To: lrg; +Cc: linux-kernel, Mike Rapoport


Signed-off-by: Mike Rapoport <mike@compulab.co.il>
---
 drivers/regulator/da903x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/regulator/da903x.c b/drivers/regulator/da903x.c
index 83101d6..fe77730 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 */
-- 
1.5.6.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] regulator: da903x: make da903x_is_enabled return 0 or 1
  2008-11-25  8:19 [PATCH] regulator: da903x: make da903x_is_enabled return 0 or 1 Mike Rapoport
@ 2008-11-25 11:43 ` Liam Girdwood
  0 siblings, 0 replies; 2+ messages in thread
From: Liam Girdwood @ 2008-11-25 11:43 UTC (permalink / raw)
  To: Mike Rapoport; +Cc: linux-kernel

On Tue, 2008-11-25 at 10:19 +0200, Mike Rapoport wrote:
> Signed-off-by: Mike Rapoport <mike@compulab.co.il>
> ---
>  drivers/regulator/da903x.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Applied.

Thanks.

Liam


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-25 11:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-25  8:19 [PATCH] regulator: da903x: make da903x_is_enabled return 0 or 1 Mike Rapoport
2008-11-25 11:43 ` Liam Girdwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®